
Creating Device Special Files
HP-UX version 11.00.01 Configuring Asynchronous Serial Interfaces 7-3
briefly describes how to create device special files from the command
line.
Determine the instance number of the interface card you are configuring. To check
instance numbers, enter
ioscan -f
Instance numbers are in the I column. Port numbers 0–7 are assigned to the
individual interfaces on each async card.
NOTE
Port numbers are numbered 0—7, but the numbers printed on the arms
of the octopus cable are 1—8. Subtract one from the cable number to
obtain the port number.
The device special files for the individual ports are created by using the mksf
utility. The minor number of the file denotes whether the port is connected to a
dial-in device, a dial-out device, or a direct connection.
For example, you can create a dial-in device special file for port 3 on card instance 1.
■ The following is a Continuum Series 400 sample command:
# mksf -d asyn -I 1 -p 3 -a2 -v
making ttyd1p3 c 130 0x010302
■ The following is a Continuum Series 600 and 1200 sample command:
# mksf -d ald -I 1 -p 3 -a2 -v
making ttyd1p3 c 234 0x010302
You can use the lssf command to decode the minor number used to identify the
device special file.
■ The following is a Continuum Series 400 sample command:
# lssf /dev/ttyd1p3
asyn card instance 1 port 3 callin HW flow control at
address 3/3/0 /dev/ttyd1p3
■ The following is a Continuum Series 600 and 1200 sample command:
# lssf /dev/ttyd1p3
ald card instance 1 port 3 callin HW flow control at
address 3/3/0 /dev/ttyd1p3
Each port can have one or more device special files associated with it. For more
information, including port naming conventions, see the mksf(1M) and insf(1M)
man pages.
Comentarios a estos manuales