|HP-UX Reference > L
HP-UX 11i Version 3: February 2007
lssf — list a special file
In the first form, lssf lists information about a special file. For each special_file name, lssf determines the major number of the special file and whether it is block or character (using stat()). It then scans the system for the device that is associated with the special file. When the device is found, the minor number of the special file is decoded.
A mnemonic description of the minor number is printed on standard output along with the hardware path (in other words, address) of the device. Mnemonics used to describe the fields are closely related to the options used with mksf (see mksf(1M)).
In the second form, lssf displays the list of stale device special files present in selected directories under the /dev directory.
In the third form, lssf executes a Critical Resource Analysis (CRA) on the special_file.
lssf recognizes the following options:
Most diagnostic messages from lssf are self explanatory. Listed below are some messages deserving further clarification. Warnings allow lssf to continue.
Suppose a special file is created with the command mksf -d tape2 -H 8.6.1 -b 160 -a rmt/c2t6d0m. The command lssf rmt/c2t6d0m then produces:
tape2 instance 2 bpi 160 at address 8.6.1 rmt/c2t6d0m
Suppose a special file is created with the command mksf -C disk -H 64000/0xfa00/0x0 -I 11. The command lssf /dev/disk/disk11 then produces:
esdisk section 0 at address 64000/0xfa00/0x0 /dev/disk/disk11
Display stale device special files:
Display Critical Resource Analysis information for /dev/disk/disk7:
lssf -c /dev/disk/disk7