putq(9r)putq(9r)NAMEputq - STREAMS: Puts a message on a queue
SYNOPSIS
#include <sys/stream.h>
int putq(
queue_t *queue_pointer,
MBLKP message_ptr );
ARGUMENTS
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 *.
DESCRIPTION
The putq interface puts a message on a driver's queue after the mod‐
ule's put interface has finished processing the message. The putq
interface places the message after any other messages of the same pri‐
ority 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.
RETURN VALUES
Upon successful completion, putq returns the value 1. On failure, it
returns the value zero (0).
SEE ALSO
Kernel Interfaces: putbq(9r), qenable(9r), rmvq(9r)putq(9r)