(D3str) - STREAMS kernel functions
DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(D3str) - STREAMS kernel functions


Intro
introduction to STREAMS kernel functions

adjmsg
trim bytes from a message

allocb
allocate a message block

allocb_physreq
allocate a STREAMS message block with physical requirements

backq
get pointer to the queue behind a given queue

bcanput
test for flow control in a specified priority band

bcanputnext
test for flow control in a specified priority band

bufcall
call a function when a buffer becomes available

canput
test for room in a message queue

canputnext
test for flow control in a stream

copyb
copy a message block

copymsg
copy a message

datamsg
test whether a message is a data message

dupb
duplicate a message block descriptor

dupmsg
duplicate a message

enableok
allow a queue to be serviced

esballoc
allocate a message block using an externally-supplied buffer

esbbcall
call a function when an externally-supplied buffer can be allocated

flushband
flush messages in a specified priority band

flushq
flush messages on a queue

freeb
free a message block

freemsg
free a message

freezestr
freeze the state of a stream

getadmin
return given module identifier to administration function

getmid
given the driver or module name, return module identifier

getq
get the next message from a queue

insq
insert a message into a queue

linkb
concatenate two message blocks

MPSTR_QLOCK
lock a STREAMS queue for mutual exclusion

MPSTR_QLOCK, MPSTR_QRELE
lock a STREAMS queue for mutual exclusion

MPSTR_QRELE
release lock on a STREAMS queue

MPSTR_STPLOCK
lock Stream head

MPSTR_STPLOCK, MPSTR_STPRELE
lock Stream head in multithreaded code

MPSTR_STPRELE
release Stream head locked by MPSTR_STPLOCK

msgdsize
return number of bytes of data in a message

msgphysreq
ensure that a message meets physical requirements

msgpullup
concatenate bytes in a message

msgpullup_physreq
concatenate bytes in a message with physical requirements

msgscgth
construct a DMA scatter/gather list for a message block

noenable
prevent a queue from being scheduled

OTHERQ
get a pointer to queue's partner queue

pcmsg
test whether a message is a priority control message

pullupmsg
concatenate bytes in a message

put
call a put procedure

putbq
place a message at the head of a queue

putctl
send a control message to a queue

putctl1
send a control message with a one-byte parameter to a queue

putnext
send a message to the next queue

putnextctl
send a control message to a queue

putnextctl1
send a control message with a one byte parameter to a queue

putq
put a message on a queue

qenable
schedule a queue's service routine to be run

qprocsoff
disable put and service routines

qprocson
enable put and service routines

qreply
send a message in the opposite direction in a stream

qsize
find the number of messages on a queue

RD
get a pointer to the read queue

rmvb
remove a message block from a message

rmvq
remove a message from a queue

SAMESTR
test if next queue is of the same type

strioccall
Invoke function as completion of an M_IOCTL operation

strlog
submit messages to the log driver

strqget
get information about a queue or band of the queue

strqset
change information about a queue or band of the queue

testb
test for an available buffer

unbufcall
cancel a pending bufcall request

unfreezestr
unfreeze the state of a stream

unlinkb
remove a message block from the head of a message

WR
get a pointer to the write queue

© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005