STREAMS-UX Programmer's Guide (February 2007)
STREAMS Utilities Supported by HP-UX
Appendix B
196
NAME
putctl2 () – Send a control message with two byte data.
SYNOPSIS
#include <sys/stream.h>
int putctl2 (queue_t *q, int type, int parm1, int parm2);
PARAMETERS
q
Pointer to the queue to which the control message is to be sent.
type
Message type
parm1
&
parm2
Two 1-byte data parameters
DESCRIPTION
putctl2() is an enhanced version of putctl1(). It allows for two 1-byte parameters to accompany the
control message. Processing and error checking remains the same as putctl() or putctl1().
RETURN VALUES
putctl2 returns 1 on success and zero on failure.
CONSTRAINTS
putctl2() can be called from thread or interrupt context. Spinlocks must not be held across this call.