file subcommand
The file subcommand displays file table entries.
Format
file [ slot | effectiveaddress]
Parameters
Item | Description |
---|---|
slot | Specifies the slot number of a file table entry. This parameter must be a decimal value. |
effectiveaddress | Specifies the effective address of a file table entry. Use symbols, hexadecimal values, or hexadecimal expressions to specify the effective address. |
If no parameter is used, all of the file table entries are displayed in a summary. Used files are displayed first. Detailed information can be displayed for individual file table entries by specifying the entry slot number or address.
Other
No aliases.
Examples
The following is an example of how to use the file subcommand:
(0)> file //print file table
COUNT OFFSET DATA TYPE FLAGS
1 file+000000 1 0000000000000100 09CD90C8 VNODE EXEC
2 file+000030 1 0000000000000100 09CC4DE8 VNODE EXEC
3 file+000060 1452 000000000019B084 09CC2B50 VNODE READ RSHARE
4 file+000090 2 0000000000000100 09CFCD80 VNODE EXEC
5 file+0000C0 2 0000000000000000 056CE008 VNODE READ WRITE
6 file+0000F0 1 0000000000000000 056CE008 VNODE READ WRITE
7 file+000120 1 0000000000000680 09CFF680 VNODE READ WRITE
8 file+000150 1 0000000000000100 0B97BE0C VNODE EXEC
9 file+000180 2 0000000000000000 056CE070 VNODE READ NONBLOCK
10 file+0001B0 323 000000000000061C 09CC4F30 VNODE READ RSHARE
11 file+0001E0 1 0000000000000000 0B7E8700 READ WRITE
12 file+000210 16 000000000000061C 09CC5AB8 VNODE READ RSHARE
13 file+000240 1 0000000000000000 0B221950 GNODE WRITE
14 file+000270 1 0000000000000000 0B221A20 GNODE WRITE
15 file+0002A0 2 000000000000055C 09CFFCE8 VNODE READ RSHARE
16 file+0002D0 2 0000000000000000 09CFE9B0 VNODE WRITE
17 file+000300 1 0000000000000000 0B7E8600 READ WRITE
18 file+000330 1 0000000000000000 056CE008 VNODE READ
19 file+000360 1 0000000000000000 09CFBB90 VNODE WRITE
20 file+000390 3 000000000000284A 0B99A60C VNODE READ
(0)> more (^C to quit) ? Interrupted
(0)> file 3 //print file slot 3
COUNT OFFSET DATA TYPE FLAGS
3 file+000060 1474 000000000019B084 09CC2B50 VNODE READ RSHARE
f_flag......... 00001001 f_count........ 000005C2
f_msgcount......... 0000 f_type............. 0001
f_data......... 09CC2B50 f_offset... 000000000019B084
f_dir_off...... 00000000 f_cred......... 056D0E58
f_lock@........ 004AF098 f_lock......... 00000000
f_offset_lock@. 004AF09C f_offset_lock.. 00000000
f_vinfo........ 00000000 f_ops.......... 00250FC0 vnodefops+000000
VNODE.......... 09CC2B50
v_flag.... 00000000 v_count... 00000002 v_vfsgen.. 00000000
v_lock.... 00000000 v_lock@... 09CC2B5C v_vfsp.... 056D18A4
v_mvfsp... 00000000 v_gnode... 09CC2B90 v_next.... 00000000
v_vfsnext. 09CC2A08 v_vfsprev. 09CC3968 v_pfsvnode 00000000
v_audit... 00000000