Invoke function as completion of an M_IOCTL operation
Synopsis (Not in ODDI)
int strioccall(int (*func)(), void *arg, uint_t iocid, queue_t *q);
strioccall allows a STREAMS driver
(not a STREAMS module)
to invoke a function in a driver in
as the completion
driver function to be called
argument to that function
copy of the
ioc_id member of the
driver's write queue
function should return 0 for success,
or the appropriate error number from those listed on
if an error occurs,
such as insufficient memory
to queue the request.
The system call will usually return 0 on success
or -1 on failure,
with errno set to an appropriate value
from the list on
However, the driver can choose to have the system call return a
different value on success
by passing the value through the rvalp pointer.
EINVAL should be returned
if a particular cmd is not supported by the driver.
func is called after the
acknowledgement for this iocid has reached
the stream head.
Differences between versions
existed in earlier kernels but is not supported
by earlier DDI versions.
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005