STREAMS/UX for the HP 9000 Reference Manual
96
STREAMS/UX Multiprocessor Support
MP Synchronization Levels on a Uniprocessor
INSTALL FUNCTION CONFIGURATION
B MODULE
static streams_info_t b_str_info = { /* streams information */
“B”, /* name */
-1, /* major number */
{ &brinit, &bwinit, NULL, NULL }, /* streamtab */
STR_IS_MODULE | STR_SYSV4_OPEN, /* *****NOTE***** MGR_IS_MP not specified */
SQLVL_MODULE, /* *****NOTE***** synch level specified */
“”, /* sync name */
}
int
B_install()
{
int retval;
return(str_install(&b_str_info));
}
D DRIVER
static drv_info_t d_drv_info = { /* driver information */
“D”, /* name */
“pseudo”, /* class */
DRV_CHAR | DRV_PSEUDO, /* *****NOTE***** DRV_MP_SAFE flag not specified */
-1, /* block major number */
-1 /* dynamically assigned character major number */
NULL, NULL, NULL, /* cdio, gio_private,and cdio_private structures
*/
structures */
}
static drv_ops_t d_drv_ops = { /* driver entry points */
NULL, /* open */
NULL, /* close */
NULL, /* strategy */
NULL, /* dump */
NULL, /* psize */
NULL, /* mount */
NULL, /* read */
NULL, /* write */
NULL, /* ioctl */
NULL, /* select */
NULL, /* option1 */
NULL, NULL, NULL, NULL, /* reserved entry points */
0, /* device flags */
}