STREAMS/UX for the HP 9000 Reference Manual

67
Differences Between STREAMS/UX and System V Release 4 STREAMS
HP-UX Changes to Cloning
For definition in the $DEVICE table in the drivers master file entry, set the
0x8000 bit in the mask field to use the second cloning method. For example:
MASTER FILE ENTRY
$DRIVER_INSTALL
* Driver Block major Char major
example 1 -1
if ((retval = install_driver(&example_drv_info, &example_drv_ops))!= 0)
return(retval);
/* Configure streams specific parameters. */
if ((retval = str_install(&example_str_info)) != 0) {
uninstall_driver(&example_drv_info);
return(retval);
}
/* Success */
return 0;
}
MASTER FILE $DEVICE TABLE CONFIGURATION
name handle type mask block char
example exampleinfo 21 80FC -1 75 /* 0x8000 set in mask */