Gets the next priority message off a stream.
The getpmsg system call is identical to the getmsg system call, except that the message priority can be specified.
This system call is part of the STREAMS Kernel Extensions.
Item | Description |
---|---|
fd | Specifies a file descriptor referencing an open stream. |
ctlptr | Holds the control part of the message. |
dataptr | Holds the data part of the message. |
bandp | Specifies the priority band of the message. If the value of the bandp parameter is set to 0, then the priority band is not limited. |
flags | Indicates the type of message priority to be retrieved. Acceptable
values are:
If the value of the flags parameter is MSG_ANY or MSG_HIPRI, then the bandp parameter must be set to 0. |