2.2.3.17 Displaying the Namecache Structures
The namecache extension displays the namecache structures on the system,
and has the following format:
namecache
For example:
(kdbx) namecache
namecache nc_vp nc_vpid nc_nlen nc_dvp nc_name
=========== =========== ======= ======= ============ =============
v0x9047b2c0 v0x9021f4f8 24 4 v0x9021e5b8 sbin
v0x9047b310 v0x9021e988 0 11 v0x9021e7a0 swapdefault
v0x9047b360 v0x9021e5b8 0 2 v0x9021e7a0 ..
v0x9047b3b0 v0x9021e7a0 199 3 v0x9021e5b8 dev
v0x9047b400 v0x9021ed58 0 4 v0x9021eb70 rz1g
v0x9047b4a0 v0x9021f128 0 4 v0x9021e7a0 init
v0x9047b4f0 v0x9021f310 0 7 v0x9021e5b8 upgrade
v0x9047b540 v0x9021fab0 20 3 v0x9021e5b8 etc
v0x9047b590 v0x9021f6e0 0 7 v0x9021f4f8 inittab
v0x9047b5e0 v0x9021eb70 28 3 v0x9021e5b8 var
v0x9047b630 v0x9021f310 34 3 v0x9021e5b8 usr
v0x9047b6d0 v0x9021fc98 0 7 v0x9021eb70 console
v0x9047b720 v0x9021fe80 0 2 v0x9021e7a0 sh
v0x9047b770 v0x90220068 0 3 v0x9021f4f8 nls
v0x9047b810 v0x90220250 0 8 v0x9021e7a0 bcheckrc
v0x9047b8b0 v0x90220438 0 4 v0x9021e7a0 fsck
v0x9047b900 v0x90220620 0 5 v0x9021f4f8 fstab
v0x9047b950 v0x90220808 0 8 v0x9021e7a0 ufs_fsck
v0x9047b9a0 v0x902209f0 0 4 v0x9021eb70 rz1a
v0x9047b9f0 v0x90220bd8 0 5 v0x9021eb70 rrz1a
.
.
.
2.2.3.18 Displaying Processes’ Open Files
The ofile extension displays the open files of processes and has the
following format.
ofile [ -proc address
|
-pid pid
|
-v]
If you omit arguments, ofile displays the files opened by each process. If
you specify −proc address or −pid pid the extension displays the open
files owned by the specified process. The −v flag displays more information
about the open files.
For example:
(kdbx) ofile -pid 1136 -v
Proc=0xffffffff9041e980 pid= 1136
ADDR_FILE f_cnt ADDR_VNODE V_TYPE V_TAG USECNT V_MOUNT INO# QSIZE
=========== ===== =========== ====== ====== ====== =========== ====== =====
v0x90408520 27 v0x902c1390 VCHR VT_UFS 3 v0x863abab8 1103 0
v0x90408520 27 v0x902c1390 VCHR VT_UFS 3 v0x863abab8 1103 0
v0x90408520 27 v0x902c1390 VCHR VT_UFS 3 v0x863abab8 1103 0
v0x90408368 1 v0x9026e6b8 VDIR VT_UFS 18 v0x863ab728 64253 512
Kernel Debugging Utilities 2–27