STREAMS-UX Programmer's Guide (February 2007)

STREAMS Utilities Supported by HP-UX
Appendix B
199
NAME
putnextctl2 () – Send control message with two byte parameter to the next queue.
SYNOPSIS
#include <sys/stream.h>
int putnextctl2 (queue_t *q, int type, int parm1, int parm2);
PARAMETERS
q
Pointer to the queue from which the control message is being sent.
type
Message type.
parm1
&
parm2
Two one byte parameters.
DESCRIPTION
putnextctl2() behaves exactly like putnextctl1(), except that it allows for two 1-byte parameters in the
control message instead of one.
RETURN VALUES
putnextctl2() fails and returns 0 if, either the type specified is a M_DATA, M_PROTO, or M_PCPROTO,or a
message block cannot be allocated. It returns 1 if successful.
CONSTRAINTS
putnextctl2() does not block and can be called from thread or interrupt context. Spinlocks must not be held
across this call.