indicate that a STREAMS driver can have multiprocessor access
void sdistributed(queue_t q, int flags);
The sdistributed function is called from a
STREAMS driver's xxopen routine to register the
device as multithreaded.
Identifies the calling queue
Informs the STREAMS subsystem about which
portions of the driver/module code have been multithreaded. Messages
that cross a multithreaded to single-threaded boundary are queued
in a global
queue for deferred processing on the default CPU. The
supported flags are as follows:
read put procedure is multithreaded
read service procedure is multithreaded
write put procedure is multithreaded
write service procedure is multithreaded
panics if bad values are passed.
Context and synchronization
Initialization or blockable
2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp
SVR5 DDI compatibility
This function is not supported in DDI.
STREAMS drivers use the same conventions
to indicate that they are multithreaded
as other types of drivers.
``Multithreaded drivers'' in HDK Technical Reference.
``Multithreaded drivers'' in HDK Technical Reference
The following code fragment registers a STREAMS driver
as having multithreaded
read put, read service, write put, and write service routines.
int xxopen(register queue_t *q, int dev, int flag, int sflag);
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005