CANPUTNEXT(9F) | Kernel Functions for Drivers | CANPUTNEXT(9F) |
canputnext
, bcanputnext
—
#include <sys/stream.h>
int
canputnext
(queue_t *q);
int
bcanputnext
(queue_t *q,
unsigned char pri);
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).
STREAMS Programming Guide.
Writing Device Drivers.
April 9, 2016 | OmniOS |