STREAMS-UX Programmer's Guide (February 2007)

STREAMS Utilities Supported by HP-UX
Appendix B
192
NAME
put () – Calls a driver or module’s put procedure.
SYNOPSIS
#include <sys/stream.h>
void put(queue_t *q, mblk_t *mp);
PARAMETERS
q
Pointer to a queue.
mp
Pointer to a message block.
DESCRIPTION
This function is called by modules and drivers to invoke their own put procedure (for the specified queue) to
operate on the specified message.
RETURN VALUES
None
CONSTRAINTS
put() can be called from thread or interrupt context. Spinlocks must not be held across calls to this function.