STREAMS/UX for the HP 9000 Reference Manual

113
How to Compile and Link STREAMS/UX Drivers, Modules, and Applications
Linking STREAMS/UX Drivers and Modules into the Kernel
An example $DRIVER_INSTALL section from the STREAMS/UX master
file is as follows:
In addition, you will also need to add additional entries for any STREAMS
modules to the $DRIVER_INSTALL section as well. Using the example
lmodb module:
When adding an entry to the $DRIVER_INSTALL section of your master
file, do NOT add an entry to the $DEVICE section of your master file. This
will result in a possible conflict (such as duplicate major numbers) and/or a
lack of a call to your driver install routine at bootup. The only way to use the
dynamic major number facility is to configure your STREAMS driver as
documented in this section.
$DRIVER_INSTALL
*************************************************************************
* Driver install table
*
* This table contains the name of drivers which have converged I/O header
* structures and install entry points. Drivers in this table should not
* be defined in the driver table above.
*************************************************************************
* Driver Block major Char major
clone -1 72
strlog -1 73
sad -1 74
echo -1 116
* Example driver entry which must use dynamic major numbers indicated by -1
tlo -1 -1
$DRIVER_INSTALL
*************************************************************************
* Driver install table
*
* This table contains the name of drivers which have converged I/O header
* structures and install entry points. Drivers in this table should not
* be defined in the driver table above.
*************************************************************************
* Driver Block major Char major
lmodb -1 -1