STREAMS/UX for the HP 9000 Reference Manual
112
How to Compile and Link STREAMS/UX Drivers, Modules, and Applications
Linking STREAMS/UX Drivers and Modules into the Kernel
Illustrated below is an example of the driver install routine required for a
STREAMS module, using the example lmodb module.
int
lmodb_install()
{
int retval;
if ((retval = str_install (&lmodb_str_info)) != 0)
{
return (retval);
}
return 0; /* return success */
};
Modifying Your Master File
In 10.0, the /etc/master file is replaced by a collection of files located in
/usr/conf/master.d directory. It is recommended that you create your own
individual master file, calling it something appropriate. See
/usr/conf/master.d/streams for the master file used by the STREAMS/UX
framework. You may use the STREAMS master file as a template for
creating your specific master file.
You will need to add entries for each of your STREAMS drivers to the
$DRIVER_INSTALL section of your master file. See the master(4)
manpage for a description of the master file section layouts and dynamic
major numbers.