MPE/iX Intrinsics Reference Manual (32650-90875)

346 Chapter7
Command Definitions (HP32208-HPLOACNMPROC)
HPDEVCREATE
1 I32 Device File Category.
This option allows you to create one of several types of device files. The following
is a list of valid categories:
1 FIFO
Specifying this category creates a FIFO file. You can specify
the ACD option with this item number. Any other option will
result in an error.
2 STREAMS
Specifying this category creates a STREAMS file using the
attributes specified in the major number (item 3), minor
number (item 4), and the link name (item 5). If this category is
specified, then the major or minor number options are
required.
3 DEVICE LINK
Specifying this category creates a device_link file using the
LDEV number specified in item 2 (LDEV). If you specify this
category, then item 2 is required.
2 I32 LDEV
Specifying this option causes a logical symbolic link to a device created using
the LDEV numbet provided in the keyvalue parameter. This option is only valid
when the device file category 3 (device link) is specified. If other options are
specified, an error is returned.
3 I32 Major Number.
This option allows specifications of device files in a traditional UNIX manner of
major and minor numbers. If the major number is specified, the minor number
option must also be specified, or an error is returned. The following major
numbers are valid:
1-254 Used to indicate a streams device file.
Specifying a major number value other than 1-254 will result
in an error.
4 I32 Minor Number.
This option is used in conjunction with option 3 to provide UNIX compatible
device specification. If the minor number is specified, the major number must be
specified, or an error is returned. The interpretation of the minor number is
dependent on the value of the major number. The minor number represents a
streams connection to a driver.
A minor number is valid in the range from 0 to 16777215 (represented by 24
bits).
Table 7-12. HPDEVCREATE Keywords/keyvalues
Key
word
Type Description