Sets the read mode.
The I_SRDOPT operation sets the read mode using the value of the arg parameter. Legal values for the arg parameter are:
Value | Description |
---|---|
RNORM | Byte-stream mode. This is the default mode. |
RMSGD | Message-discard mode. |
RMSGN | Message-nondiscard mode. |
RFILL | Read mode. This mode prevents completion of any read request until one of three conditions occurs:
Several control messages support the RFILL mode. They are used by modules to manipulate data being placed in user buffers at the stream head. These messages are multiplexed under a single M_MI message type. The message subtype, pointed to by the b_rptr parameter, is one of the following:
|
In addition, treatment of control messages by the stream head can be changed by setting the following flags in the arg parameter:
This operation is part of STREAMS Kernel Extensions.
If unsuccessful, the errno global variable is set to the following value:
Value | Description |
---|---|
EINVAL | The value of the arg parameter is not one of the above legal values. |
The streamio operations.
The I_GRDOPT streamio operation.