STREAMS-UX Programmer's Guide (February 2007)
STREAMS Utilities Supported by HP-UX
Appendix B
200
NAME
putq () – Enqueue message on the queue for deferred processing.
SYNOPSIS
#include <sys/stream.h>
int putq (queue_t *q, mblk_t *mp);
PARAMETERS
q
Pointer to the queue in which the message is to be put.
mp
Pointer to the message.
DESCRIPTION
putq() is typically used by put procedure for deferred processing of the messages. The putq() enqueues the
message
mp
in the message queue based on its priority. The service procedure is enabled if a high priority
message is enqueued and QNOENAB is unset. Flow control parameters are updated for this queue.
RETURN VALUES
putq() returns 1 on success and 0 on failure.
CONSTRAINTS
putq() can be called from thread or interrupt context. Spinlocks of STREAMS/UX user lock order can be held
across this call, and should not pass driver’s read queue or lower mux’s write queue.