Configuring HP-UX For Peripherals
274 AppendixC
Major and Minor Numbers
Understanding the Construction of Device Special Files
Examples of Minor Number Creation
A Minor Number for a MUX Driver
The minor number 0x010200 shown earlier for the mux2 driver can be
represented as follows:
0000 0001 The eight bits of the card instance number is 1 (tty1 in
the device special file name).
0000 0010 The port address is 2 (p2 in the device special file
name).
0000 0000 The remaining bits are set to zero.
A Minor Number for a SCSI Disk Device
The minor number 0x023000 represents a SCSI disk device set with a
SCSI address of 3, connected to a SCSI interface at card instance 2, and
might be shown as follows:
0000 0010 The eight bits of the card instance number is 2 (c2 in a
device special file name).
0011 The SCSI address (target) set on the device is 3 (t3 in a
device special file name).
0000 0000 0000 The remaining bits are set to zero. (d0 in a device
special file name).
Table C-2 Minor Number for the MUX2 Driver
bits 8-11 12-15 16-19 20-23 24-27 28-31
binary 0000 0001 0000 0010 0000 0000
hex (0x) 010200
Table C-3 Minor Number for a SCSI Disk Device
bits 8-11 12-15 16-19 20-23 24-27 28-31
binary 0000 0010 0011 0000 0000 0000
hex (0x) 023000