putq - STREAMS: Puts a message on a queue
#include <sys/stream.h>
int putq(
queue_t *queue_pointer,
MBLKP message_ptr );
Specifies a pointer to the queue to which the message is
to be added. The typedef queue_t is an alternate name for
struct queue_entry *. Specifies a pointer to the message
block to be placed on the queue. The typedef MBLKP is an
alternate name for typedef struct msgb *.
The putq interface puts a message on a driver's queue
after the module's put interface has finished processing
the message. The putq interface places the message after
any other messages of the same priority and then updates
any flow-control parameters. If the QNOENB flag bit is not
set, putq enables the service interface. If no processing
is done, the putq interface can be used as the module's
put interface.
Upon successful completion, putq returns the value 1. On
failure, it returns the value zero (0).
Kernel Interfaces: putbq(9r), qenable(9r), rmvq(9r)
putq(9r)
[ Back ] |