003 File Manager
Current Path:
/usr/local/lib/perl5/site_perl/mach/5.32/sys
usr
/
local
/
lib
/
perl5
/
site_perl
/
mach
/
5.32
/
sys
/
📁
..
📄
_atomic64e.ph
(1.7 KB)
📄
_atomic_subword.ph
(5.32 KB)
📄
_bitset.ph
(834 B)
📄
_blockcount.ph
(809 B)
📄
_bus_dma.ph
(324 B)
📄
_callout.ph
(199 B)
📄
_cpuset.ph
(487 B)
📄
_cscan_atomic.ph
(29.03 KB)
📄
_cscan_bus.ph
(13.04 KB)
📄
_domainset.ph
(547 B)
📄
_eventhandler.ph
(738 B)
📄
_ffcounter.ph
(180 B)
📄
_iovec.ph
(316 B)
📄
_lock.ph
(1.19 KB)
📄
_lockmgr.ph
(276 B)
📄
_mutex.ph
(200 B)
📄
_null.ph
(651 B)
📄
_pctrie.ph
(171 B)
📄
_pthreadtypes.ph
(317 B)
📄
_rangeset.ph
(204 B)
📄
_rmlock.ph
(485 B)
📄
_rwlock.ph
(203 B)
📄
_semaphore.ph
(285 B)
📄
_seqc.ph
(165 B)
📄
_sigset.ph
(858 B)
📄
_smr.ph
(908 B)
📄
_sockaddr_storage.ph
(665 B)
📄
_stack.ph
(230 B)
📄
_stdarg.ph
(1.09 KB)
📄
_stdint.ph
(1.62 KB)
📄
_sx.ph
(159 B)
📄
_task.ph
(578 B)
📄
_termios.ph
(7.26 KB)
📄
_timespec.ph
(325 B)
📄
_timeval.ph
(456 B)
📄
_types.ph
(944 B)
📄
_ucontext.ph
(177 B)
📄
_uio.ph
(548 B)
📄
_umtx.ph
(265 B)
📄
_unrhdr.ph
(193 B)
📄
_winsize.ph
(174 B)
📄
aac_ioctl.ph
(7.36 KB)
📄
abi_compat.ph
(1.81 KB)
📄
acct.ph
(859 B)
📄
acl.ph
(6.91 KB)
📄
agpio.ph
(5.3 KB)
📄
aio.ph
(2.17 KB)
📄
alq.ph
(648 B)
📄
apm.ph
(87 B)
📄
arb.ph
(35.53 KB)
📄
assym.ph
(1.5 KB)
📄
ata.ph
(50.51 KB)
📄
atomic_common.ph
(3.28 KB)
📄
auxv.ph
(220 B)
📄
backlight.ph
(903 B)
📄
bio.ph
(2.23 KB)
📄
bitset.ph
(9.24 KB)
📄
bitstring.ph
(1.61 KB)
📄
blist.ph
(552 B)
📄
blockcount.ph
(1.6 KB)
📄
boot.ph
(247 B)
📄
buf.ph
(11.05 KB)
📄
buf_ring.ph
(1.55 KB)
📄
bufobj.ph
(2.18 KB)
📄
bus.ph
(24.54 KB)
📄
bus_dma.ph
(4.55 KB)
📄
bus_dma_internal.ph
(186 B)
📄
busdma_bufalloc.ph
(262 B)
📄
callout.ph
(5.06 KB)
📄
caprights.ph
(534 B)
📄
capsicum.ph
(12.44 KB)
📄
cdefs.ph
(33.03 KB)
📄
cdio.ph
(5.68 KB)
📄
cdrio.ph
(3.6 KB)
📄
cfictl.ph
(741 B)
📄
chio.ph
(6.57 KB)
📄
ck.ph
(503 B)
📄
clock.ph
(990 B)
📄
cnv.ph
(540 B)
📄
compressor.ph
(349 B)
📄
condvar.ph
(1.85 KB)
📄
conf.ph
(4.53 KB)
📄
cons.ph
(1.59 KB)
📄
consio.ph
(17.3 KB)
📄
copyright.ph
(608 B)
📄
counter.ph
(1.61 KB)
📄
coverage.ph
(745 B)
📄
cpu.ph
(2.36 KB)
📄
cpuctl.ph
(1.04 KB)
📄
cpuset.ph
(4.91 KB)
📄
csan.ph
(349 B)
📄
ctf.ph
(8.35 KB)
📄
ctf_api.ph
(1.04 KB)
📄
ctype.ph
(1.51 KB)
📄
devctl.ph
(168 B)
📄
devicestat.ph
(4.25 KB)
📄
devmap.ph
(352 B)
📄
dirent.ph
(1.88 KB)
📄
disk.ph
(2.75 KB)
📄
disk_zone.ph
(4.48 KB)
📄
disklabel.ph
(1.75 KB)
📄
diskmbr.ph
(329 B)
📄
dkstat.ph
(199 B)
📄
dnv.ph
(427 B)
📄
domain.ph
(1.16 KB)
📄
domainset.ph
(5.58 KB)
📄
dtrace.ph
(52.95 KB)
📄
dtrace_bsd.ph
(177 B)
📄
dvdio.ph
(2.61 KB)
📄
efi.ph
(3.33 KB)
📄
efiio.ph
(821 B)
📄
elf.ph
(273 B)
📄
elf32.ph
(1.41 KB)
📄
elf64.ph
(1.91 KB)
📄
elf_common.ph
(85.24 KB)
📄
elf_generic.ph
(2.06 KB)
📄
endian.ph
(5.87 KB)
📄
epoch.ph
(2.43 KB)
📄
errno.ph
(6.93 KB)
📄
eui64.ph
(323 B)
📄
event.ph
(7.54 KB)
📄
eventfd.ph
(458 B)
📄
eventhandler.ph
(4.88 KB)
📄
eventvar.ph
(858 B)
📄
exec.ph
(1.19 KB)
📄
extattr.ph
(1.12 KB)
📄
fail.ph
(5.77 KB)
📄
fbio.ph
(17.58 KB)
📄
fcntl.ph
(9.1 KB)
📄
fdcio.ph
(5.37 KB)
📄
file.ph
(6.54 KB)
📄
filedesc.ph
(6.85 KB)
📄
filio.ph
(1.99 KB)
📄
firmware.ph
(332 B)
📄
fnv_hash.ph
(1.52 KB)
📄
font.ph
(930 B)
📄
gmon.ph
(2.57 KB)
📄
gpio.ph
(3.4 KB)
📄
gpt.ph
(300 B)
📄
gsb_crc32.ph
(744 B)
📄
gtaskqueue.ph
(1.85 KB)
📄
hash.ph
(440 B)
📄
hhook.ph
(1.42 KB)
📄
iconv.ph
(4.33 KB)
📄
imgact.ph
(476 B)
📄
imgact_aout.ph
(4.63 KB)
📄
imgact_binmisc.ph
(1.75 KB)
📄
imgact_elf.ph
(1.45 KB)
📄
interrupt.ph
(1.45 KB)
📄
intr.ph
(1.61 KB)
📄
ioccom.ph
(2.62 KB)
📄
ioctl.ph
(387 B)
📄
ioctl_compat.ph
(5.35 KB)
📄
iov.ph
(1.34 KB)
📄
iov_schema.ph
(358 B)
📄
ipc.ph
(2.21 KB)
📄
ipmi.ph
(6.15 KB)
📄
jail.ph
(7.65 KB)
📄
joystick.ph
(819 B)
📄
kbio.ph
(8.69 KB)
📄
kcov.ph
(1.19 KB)
📄
kdb.ph
(2.3 KB)
📄
kenv.ph
(578 B)
📄
kern_prefetch.ph
(385 B)
📄
kernel.ph
(13.29 KB)
📄
kerneldump.ph
(3.28 KB)
📄
khelp.ph
(325 B)
📄
kobj.ph
(3.16 KB)
📄
kpilite.ph
(860 B)
📄
ksem.ph
(432 B)
📄
kthread.ph
(199 B)
📄
ktls.ph
(1.67 KB)
📄
ktr.ph
(12.26 KB)
📄
ktr_class.ph
(2.53 KB)
📄
ktrace.ph
(4.95 KB)
📄
libkern.ph
(3.61 KB)
📄
limits.ph
(2.99 KB)
📄
link_aout.ph
(4.54 KB)
📄
link_elf.ph
(971 B)
📄
linker.ph
(3.66 KB)
📄
linker_set.ph
(2.81 KB)
📄
lock.ph
(10.56 KB)
📄
lock_profile.ph
(1.31 KB)
📄
lockf.ph
(307 B)
📄
lockmgr.ph
(6.64 KB)
📄
lockstat.ph
(4.38 KB)
📄
loginclass.ph
(180 B)
📄
mac.ph
(740 B)
📄
malloc.ph
(3.64 KB)
📄
mbuf.ph
(33.44 KB)
📄
mchain.ph
(494 B)
📄
md4.ph
(213 B)
📄
md5.ph
(497 B)
📄
mdioctl.ph
(1.7 KB)
📄
memdesc.ph
(2.53 KB)
📄
memrange.ph
(1.99 KB)
📄
mman.ph
(9.09 KB)
📄
module.ph
(4.84 KB)
📄
module_khelp.ph
(1.18 KB)
📄
mount.ph
(22.18 KB)
📄
mouse.ph
(15.1 KB)
📄
mpt_ioctl.ph
(1.95 KB)
📄
mqueue.ph
(202 B)
📄
msg.ph
(1.24 KB)
📄
msgbuf.ph
(993 B)
📄
mtio.ph
(8.56 KB)
📄
mutex.ph
(17.47 KB)
📄
namei.ph
(7.81 KB)
📄
nlist_aout.ph
(1.88 KB)
📄
nv.ph
(2.02 KB)
📄
nvpair.ph
(4.36 KB)
📄
osd.ph
(3.22 KB)
📄
param.ph
(9.24 KB)
📄
pciio.ph
(2.92 KB)
📄
pcpu.ph
(6.97 KB)
📄
pctrie.ph
(2.74 KB)
📄
physmem.ph
(886 B)
📄
pidctrl.ph
(435 B)
📄
pipe.ph
(2.25 KB)
📄
pmc.ph
(22.72 KB)
📄
pmckern.ph
(6.13 KB)
📄
pmclog.ph
(3.2 KB)
📄
poll.ph
(1.58 KB)
📄
posix4.ph
(1.2 KB)
📄
power.ph
(986 B)
📄
priority.ph
(3.44 KB)
📄
priv.ph
(19.61 KB)
📄
prng.ph
(328 B)
📄
proc.ph
(30.83 KB)
📄
procctl.ph
(4.3 KB)
📄
procdesc.ph
(1.48 KB)
📄
procfs.ph
(535 B)
📄
protosw.ph
(4.83 KB)
📄
ptio.ph
(395 B)
📄
ptrace.ph
(4.63 KB)
📄
qmath.ph
(19.54 KB)
📄
queue.ph
(30.6 KB)
📄
racct.ph
(6.48 KB)
📄
random.ph
(4.47 KB)
📄
rangelock.ph
(1.45 KB)
📄
rangeset.ph
(234 B)
📄
rctl.ph
(4.19 KB)
📄
reboot.ph
(1.86 KB)
📄
refcount.ph
(4.03 KB)
📄
regression.ph
(218 B)
📄
resource.ph
(3.04 KB)
📄
resourcevar.ph
(1.14 KB)
📄
rman.ph
(1.89 KB)
📄
rmlock.ph
(4.18 KB)
📄
rtprio.ph
(1.44 KB)
📄
runq.ph
(296 B)
📄
rwlock.ph
(10.78 KB)
📄
sbuf.ph
(1.55 KB)
📄
sched.ph
(3.04 KB)
📄
sdt.ph
(21.91 KB)
📄
select.ph
(2.28 KB)
📄
selinfo.ph
(371 B)
📄
sem.ph
(1.97 KB)
📄
sema.ph
(919 B)
📄
seqc.ph
(2.19 KB)
📄
serial.ph
(2.12 KB)
📄
sf_buf.ph
(2.32 KB)
📄
sglist.ph
(715 B)
📄
shm.ph
(1.8 KB)
📄
sigio.ph
(323 B)
📄
signal.ph
(12.78 KB)
📄
signalvar.ph
(9.63 KB)
📄
sleepqueue.ph
(975 B)
📄
slicer.ph
(1000 B)
📄
smp.ph
(3.05 KB)
📄
smr.ph
(1.49 KB)
📄
smr_types.ph
(2.14 KB)
📄
snoop.ph
(625 B)
📄
sockbuf.ph
(4.14 KB)
📄
socket.ph
(20.01 KB)
📄
socketvar.ph
(7.29 KB)
📄
sockio.ph
(8.23 KB)
📄
sockopt.ph
(375 B)
📄
soundcard.ph
(66.67 KB)
📄
specialfd.ph
(257 B)
📄
spigenio.ph
(1.06 KB)
📄
stack.ph
(845 B)
📄
stat.ph
(9.2 KB)
📄
stats.ph
(30.3 KB)
📄
statvfs.ph
(485 B)
📄
stdatomic.ph
(15.26 KB)
📄
stddef.ph
(518 B)
📄
stdint.ph
(915 B)
📄
sx.ph
(10.75 KB)
📄
syscall.ph
(28.09 KB)
📄
syscallsubr.ph
(521 B)
📄
sysctl.ph
(46.96 KB)
📄
sysent.ph
(6.09 KB)
📄
syslimits.ph
(1.32 KB)
📄
syslog.ph
(4.03 KB)
📄
sysproto.ph
(43.73 KB)
📄
systm.ph
(12.58 KB)
📄
taskqueue.ph
(3.65 KB)
📄
terminal.ph
(5.68 KB)
📄
termios.ph
(223 B)
📄
thr.ph
(691 B)
📄
tiio.ph
(4.04 KB)
📄
tim_filter.ph
(540 B)
📄
time.ph
(12.88 KB)
📄
timeb.ph
(488 B)
📄
timeet.ph
(996 B)
📄
timeffc.ph
(3.86 KB)
📄
timepps.ph
(5.73 KB)
📄
timers.ph
(1.15 KB)
📄
times.ph
(379 B)
📄
timespec.ph
(735 B)
📄
timetc.ph
(444 B)
📄
timex.ph
(3.16 KB)
📄
tree.ph
(29.45 KB)
📄
tslog.ph
(2.24 KB)
📄
tty.ph
(3.84 KB)
📄
ttycom.ph
(5.65 KB)
📄
ttydefaults.ph
(2.62 KB)
📄
ttydevsw.ph
(2.84 KB)
📄
ttydisc.ph
(1.02 KB)
📄
ttyhook.ph
(2.25 KB)
📄
ttyqueue.ph
(2.15 KB)
📄
turnstile.ph
(357 B)
📄
types.ph
(7.97 KB)
📄
ucontext.ph
(695 B)
📄
ucred.ph
(1.19 KB)
📄
uio.ph
(681 B)
📄
umtx.ph
(6.12 KB)
📄
un.ph
(1.07 KB)
📄
unistd.ph
(7.59 KB)
📄
unpcb.ph
(1.19 KB)
📄
user.ph
(8.58 KB)
📄
utsname.ph
(553 B)
📄
uuid.ph
(543 B)
📄
vdso.ph
(1.28 KB)
📄
vmem.ph
(643 B)
📄
vmmeter.ph
(2.21 KB)
📄
vnode.ph
(24.18 KB)
📄
vtoc.ph
(88 B)
📄
wait.ph
(4.11 KB)
📄
watchdog.ph
(2.72 KB)
Editing: buf.ph
require '_h2ph_pre.ph'; no warnings qw(redefine misc); unless(defined(&_SYS_BUF_H_)) { eval 'sub _SYS_BUF_H_ () {1;}' unless defined(&_SYS_BUF_H_); require 'sys/bufobj.ph'; require 'sys/queue.ph'; require 'sys/lock.ph'; require 'sys/lockmgr.ph'; require 'vm/uma.ph'; if(defined(&FULL_BUF_TRACKING)) { eval 'sub BUF_TRACKING_SIZE () {32;}' unless defined(&BUF_TRACKING_SIZE); eval 'sub BUF_TRACKING_ENTRY { my($x) = @_; eval q((($x) & ( &BUF_TRACKING_SIZE - 1))); }' unless defined(&BUF_TRACKING_ENTRY); } elsif(defined(&BUF_TRACKING)) { } eval 'sub b_object () { ($b_bufobj->{bo_object});}' unless defined(&b_object); eval 'sub B_AGE () {0x1;}' unless defined(&B_AGE); eval 'sub B_NEEDCOMMIT () {0x2;}' unless defined(&B_NEEDCOMMIT); eval 'sub B_ASYNC () {0x4;}' unless defined(&B_ASYNC); eval 'sub B_DIRECT () {0x8;}' unless defined(&B_DIRECT); eval 'sub B_DEFERRED () {0x10;}' unless defined(&B_DEFERRED); eval 'sub B_CACHE () {0x20;}' unless defined(&B_CACHE); eval 'sub B_VALIDSUSPWRT () {0x40;}' unless defined(&B_VALIDSUSPWRT); eval 'sub B_DELWRI () {0x80;}' unless defined(&B_DELWRI); eval 'sub B_CKHASH () {0x100;}' unless defined(&B_CKHASH); eval 'sub B_DONE () {0x200;}' unless defined(&B_DONE); eval 'sub B_EINTR () {0x400;}' unless defined(&B_EINTR); eval 'sub B_NOREUSE () {0x800;}' unless defined(&B_NOREUSE); eval 'sub B_REUSE () {0x1000;}' unless defined(&B_REUSE); eval 'sub B_INVAL () {0x2000;}' unless defined(&B_INVAL); eval 'sub B_BARRIER () {0x4000;}' unless defined(&B_BARRIER); eval 'sub B_NOCACHE () {0x8000;}' unless defined(&B_NOCACHE); eval 'sub B_MALLOC () {0x10000;}' unless defined(&B_MALLOC); eval 'sub B_CLUSTEROK () {0x20000;}' unless defined(&B_CLUSTEROK); eval 'sub B_INVALONERR () {0x40000;}' unless defined(&B_INVALONERR); eval 'sub B_IOSTARTED () {0x80000;}' unless defined(&B_IOSTARTED); eval 'sub B_00100000 () {0x100000;}' unless defined(&B_00100000); eval 'sub B_MAXPHYS () {0x200000;}' unless defined(&B_MAXPHYS); eval 'sub B_RELBUF () {0x400000;}' unless defined(&B_RELBUF); eval 'sub B_FS_FLAG1 () {0x800000;}' unless defined(&B_FS_FLAG1); eval 'sub B_NOCOPY () {0x1000000;}' unless defined(&B_NOCOPY); eval 'sub B_INFREECNT () {0x2000000;}' unless defined(&B_INFREECNT); eval 'sub B_PAGING () {0x4000000;}' unless defined(&B_PAGING); eval 'sub B_MANAGED () {0x8000000;}' unless defined(&B_MANAGED); eval 'sub B_RAM () {0x10000000;}' unless defined(&B_RAM); eval 'sub B_VMIO () {0x20000000;}' unless defined(&B_VMIO); eval 'sub B_CLUSTER () {0x40000000;}' unless defined(&B_CLUSTER); eval 'sub B_REMFREE () {0x80000000;}' unless defined(&B_REMFREE); eval 'sub PRINT_BUF_FLAGS () {"\\20\\40remfree\\37cluster\\36vmio\\35ram\\34managed" "\\33paging\\32infreecnt\\31nocopy\\30b23\\27relbuf\\26maxphys\\25b20" "\\24iostarted\\23invalonerr\\22clusterok\\21malloc\\20nocache\\17b14" "\\16inval\\15reuse\\14noreuse\\13eintr\\12done\\11b8\\10delwri" "\\7validsuspwrt\\6cache\\5deferred\\4direct\\3async\\2needcommit\\1age";}' unless defined(&PRINT_BUF_FLAGS); eval 'sub BX_VNDIRTY () {0x1;}' unless defined(&BX_VNDIRTY); eval 'sub BX_VNCLEAN () {0x2;}' unless defined(&BX_VNCLEAN); eval 'sub BX_CVTENXIO () {0x4;}' unless defined(&BX_CVTENXIO); eval 'sub BX_BKGRDWRITE () {0x10;}' unless defined(&BX_BKGRDWRITE); eval 'sub BX_BKGRDMARKER () {0x20;}' unless defined(&BX_BKGRDMARKER); eval 'sub BX_ALTDATA () {0x40;}' unless defined(&BX_ALTDATA); eval 'sub BX_FSPRIV () {0xff0000;}' unless defined(&BX_FSPRIV); eval 'sub PRINT_BUF_XFLAGS () {"\\20\\7altdata\\6bkgrdmarker\\5bkgrdwrite\\3cvtenxio" "\\2clean\\1dirty";}' unless defined(&PRINT_BUF_XFLAGS); eval 'sub NOOFFSET () {(-1);}' unless defined(&NOOFFSET); eval 'sub BV_SCANNED () {0x1;}' unless defined(&BV_SCANNED); eval 'sub BV_BKGRDINPROG () {0x2;}' unless defined(&BV_BKGRDINPROG); eval 'sub BV_BKGRDWAIT () {0x4;}' unless defined(&BV_BKGRDWAIT); eval 'sub BV_BKGRDERR () {0x8;}' unless defined(&BV_BKGRDERR); eval 'sub PRINT_BUF_VFLAGS () {"\\20\\4bkgrderr\\3bkgrdwait\\2bkgrdinprog\\1scanned";}' unless defined(&PRINT_BUF_VFLAGS); if(defined(&_KERNEL)) { unless(defined(&NSWBUF_MIN)) { eval 'sub NSWBUF_MIN () {16;}' unless defined(&NSWBUF_MIN); } eval 'sub BUF_WMESG () {"bufwait";}' unless defined(&BUF_WMESG); require 'sys/proc.ph'; require 'sys/mutex.ph'; eval 'sub BUF_LOCKINIT { my($bp) = @_; eval q( &lockinit(($bp)-> &b_lock, &PRIBIO + 4, &buf_wmesg, 0, &LK_NEW)); }' unless defined(&BUF_LOCKINIT); eval 'sub BUF_LOCK { my($bp, $locktype, $interlock) = @_; eval q( &_lockmgr_args_rw(($bp)-> &b_lock, ($locktype), ($interlock), &LK_WMESG_DEFAULT, &LK_PRIO_DEFAULT, &LK_TIMO_DEFAULT, &LOCK_FILE, &LOCK_LINE)); }' unless defined(&BUF_LOCK); eval 'sub BUF_TIMELOCK { my($bp, $locktype, $interlock, $wmesg, $catch, $timo) = @_; eval q( &_lockmgr_args_rw(($bp)-> &b_lock, ($locktype) | &LK_TIMELOCK, ($interlock), ($wmesg), ( &PRIBIO + 4) | ($catch), ($timo), &LOCK_FILE, &LOCK_LINE)); }' unless defined(&BUF_TIMELOCK); eval 'sub BUF_UNLOCK { my($bp) = @_; eval q( &do { &KASSERT((($bp)-> &b_flags & &B_REMFREE) == 0, (\\"BUF_UNLOCK %p while B_REMFREE is still set.\\", ($bp))); &BUF_UNLOCK_RAW(($bp)); } &while (0)); }' unless defined(&BUF_UNLOCK); eval 'sub BUF_UNLOCK_RAW { my($bp) = @_; eval q( &do { ( &void) &_lockmgr_args(($bp)-> &b_lock, &LK_RELEASE, &NULL, &LK_WMESG_DEFAULT, &LK_PRIO_DEFAULT, &LK_TIMO_DEFAULT, &LOCK_FILE, &LOCK_LINE); } &while (0)); }' unless defined(&BUF_UNLOCK_RAW); eval 'sub BUF_LOCKRECURSED { my($bp) = @_; eval q( &lockmgr_recursed(($bp)-> &b_lock)); }' unless defined(&BUF_LOCKRECURSED); eval 'sub BUF_ISLOCKED { my($bp) = @_; eval q( &lockstatus(($bp)-> &b_lock)); }' unless defined(&BUF_ISLOCKED); eval 'sub BUF_LOCKFREE { my($bp) = @_; eval q( &lockdestroy(($bp)-> &b_lock)); }' unless defined(&BUF_LOCKFREE); eval 'sub BUF_LOCKPRINTINFO { my($bp) = @_; eval q( &lockmgr_printinfo(($bp)-> &b_lock)); }' unless defined(&BUF_LOCKPRINTINFO); if(defined(&INVARIANTS) && defined(&INVARIANT_SUPPORT)) { eval 'sub BUF_ASSERT_LOCKED { my($bp) = @_; eval q( &_lockmgr_assert(($bp)-> &b_lock, &KA_LOCKED, &LOCK_FILE, &LOCK_LINE)); }' unless defined(&BUF_ASSERT_LOCKED); eval 'sub BUF_ASSERT_SLOCKED { my($bp) = @_; eval q( &_lockmgr_assert(($bp)-> &b_lock, &KA_SLOCKED, &LOCK_FILE, &LOCK_LINE)); }' unless defined(&BUF_ASSERT_SLOCKED); eval 'sub BUF_ASSERT_XLOCKED { my($bp) = @_; eval q( &_lockmgr_assert(($bp)-> &b_lock, &KA_XLOCKED, &LOCK_FILE, &LOCK_LINE)); }' unless defined(&BUF_ASSERT_XLOCKED); eval 'sub BUF_ASSERT_UNLOCKED { my($bp) = @_; eval q( &_lockmgr_assert(($bp)-> &b_lock, &KA_UNLOCKED, &LOCK_FILE, &LOCK_LINE)); }' unless defined(&BUF_ASSERT_UNLOCKED); } else { eval 'sub BUF_ASSERT_LOCKED { my($bp) = @_; eval q(); }' unless defined(&BUF_ASSERT_LOCKED); eval 'sub BUF_ASSERT_SLOCKED { my($bp) = @_; eval q(); }' unless defined(&BUF_ASSERT_SLOCKED); eval 'sub BUF_ASSERT_XLOCKED { my($bp) = @_; eval q(); }' unless defined(&BUF_ASSERT_XLOCKED); eval 'sub BUF_ASSERT_UNLOCKED { my($bp) = @_; eval q(); }' unless defined(&BUF_ASSERT_UNLOCKED); } if(defined(&_SYS_PROC_H_)) { eval 'sub BUF_KERNPROC { my($bp) = @_; eval q( &_lockmgr_disown(($bp)-> &b_lock, &LOCK_FILE, &LOCK_LINE)); }' unless defined(&BUF_KERNPROC); } } if(defined(&_KERNEL)) { eval 'sub bwrite { my($bp) = @_; eval q({ &KASSERT( ($bp->{b_bufobj}) != &NULL, (\\"bwrite: no bufobj bp=%p\\", $bp)); &KASSERT( ($bp->{b_bufobj}->{bo_ops}) != &NULL, (\\"bwrite: no bo_ops bp=%p\\", $bp)); &KASSERT( ($bp->{b_bufobj}->{bo_ops}->{bop_write}) != &NULL, (\\"bwrite: no bop_write bp=%p\\", $bp)); ( &BO_WRITE( ($bp->{b_bufobj}), $bp)); }); }' unless defined(&bwrite); eval 'sub bstrategy { my($bp) = @_; eval q({ &KASSERT( ($bp->{b_bufobj}) != &NULL, (\\"bstrategy: no bufobj bp=%p\\", $bp)); &KASSERT( ($bp->{b_bufobj}->{bo_ops}) != &NULL, (\\"bstrategy: no bo_ops bp=%p\\", $bp)); &KASSERT( ($bp->{b_bufobj}->{bo_ops}->{bop_strategy}) != &NULL, (\\"bstrategy: no bop_strategy bp=%p\\", $bp)); &BO_STRATEGY( ($bp->{b_bufobj}), $bp); }); }' unless defined(&bstrategy); eval 'sub buf_start { my($bp) = @_; eval q({ &KASSERT(( ($bp->{b_flags}) & &B_IOSTARTED) == 0, (\\"recursed buf_start %p\\", $bp)); ($bp->{b_flags}) |= &B_IOSTARTED; &if ( ($bioops->{io_start})) (* ($bioops->{io_start}))($bp); }); }' unless defined(&buf_start); eval 'sub buf_complete { my($bp) = @_; eval q({ &if (( ($bp->{b_flags}) & &B_IOSTARTED) != 0) { ($bp->{b_flags}) &= ~ &B_IOSTARTED; &if ( ($bioops->{io_complete})) (* ($bioops->{io_complete}))($bp); } }); }' unless defined(&buf_complete); eval 'sub buf_deallocate { my($bp) = @_; eval q({ &if ( ($bioops->{io_deallocate})) (* ($bioops->{io_deallocate}))($bp); }); }' unless defined(&buf_deallocate); eval 'sub buf_countdeps { my($bp,$i) = @_; eval q({ &if ( ($b$ioops->{io_countdeps})) ((* ($b$ioops->{io_countdeps}))($bp, $i)); &else (0); }); }' unless defined(&buf_countdeps); # some #ifdef were dropped here -- fill in the blanks eval 'sub buf_track { my($__unused,$__unused) = @_; eval q({ }); }' unless defined(&buf_track); } eval 'sub clrbuf { my($bp) = @_; eval q({ &bzero(-> &b_data, ($bp)-> &b_bcount); ($bp)-> &b_resid = 0; }); }' unless defined(&clrbuf); eval 'sub GB_LOCK_NOWAIT () {0x1;}' unless defined(&GB_LOCK_NOWAIT); eval 'sub GB_NOCREAT () {0x2;}' unless defined(&GB_NOCREAT); eval 'sub GB_NOWAIT_BD () {0x4;}' unless defined(&GB_NOWAIT_BD); eval 'sub GB_UNMAPPED () {0x8;}' unless defined(&GB_UNMAPPED); eval 'sub GB_KVAALLOC () {0x10;}' unless defined(&GB_KVAALLOC); eval 'sub GB_CKHASH () {0x20;}' unless defined(&GB_CKHASH); eval 'sub GB_NOSPARSE () {0x40;}' unless defined(&GB_NOSPARSE); eval 'sub GB_CVTENXIO () {0x80;}' unless defined(&GB_CVTENXIO); if(defined(&_KERNEL)) { eval 'sub buf_mapped { my($bp) = @_; eval q({ ( ($bp->{b_data}) != &unmapped_buf); }); }' unless defined(&buf_mapped); eval 'sub bread { my($vp, $blkno, $size, $cred, $bpp) = @_; eval q( &breadn_flags($vp, $blkno, $blkno, $size, &NULL, &NULL, 0, $cred, 0, &NULL, $bpp)); }' unless defined(&bread); eval 'sub bread_gb { my($vp, $blkno, $size, $cred, $gbflags, $bpp) = @_; eval q( &breadn_flags($vp, $blkno, $blkno, $size, &NULL, &NULL, 0, $cred, $gbflags, &NULL, $bpp)); }' unless defined(&bread_gb); eval 'sub breadn { my($vp, $blkno, $size, $rablkno, $rabsize, $cnt, $cred, $bpp) = @_; eval q( &breadn_flags($vp, $blkno, $blkno, $size, $rablkno, $rabsize, $cnt, $cred, 0, &NULL, $bpp)); }' unless defined(&breadn); } } 1;
Upload File
Create Folder