CANPUTNEXT(9F) | Kernel Functions for Drivers | CANPUTNEXT(9F) |
canputnext
,
bcanputnext
— test for room
in next message queue
#include
<sys/stream.h>
int
canputnext
(queue_t *q);
int
bcanputnext
(queue_t *q,
unsigned char pri);
The
canputnext
()
and
bcanputnext
()
functions atomically test for available space in the next linked queue or
priority band. They are preferable to and safer than calling
canput(9F) and
bcanput(9F) directly on the queue
linked to by
q->q_next.
Drivers and modules should call these routines to ensure that room on the next queue exists before calling putnext(9F).
Architecture independent (DDI/DDK).
These functions may be called in user, kernel, or interrupt context.
STREAMS Programming Guide.
Writing Device Drivers.
April 9, 2016 | OmniOS |