Technical data
bufmod(7M) STREAMS Modules SunOS 5.5
has the side-effect of forcing the chunk size to zero as well, so that the
module will pass all incoming messages upward immediately upon
arrival. Negative values are rejected with an EINVAL error.
SBIOCGTIME Return the read timeout in the struct timeval pointed to by the argu-
ment. If the timeout has beencleared with the SBIOCCTIME ioctl,
return with anERANGE error.
SBIOCCTIME Clear the read timeout, effectively setting its value to infinity. This
results in no timeouts beingactive and the chunk being delivered
when it is full.
SBIOCSCHUNK Set the chunk size to the value referred to by the u_int pointer given
as argument. See NOTES for description of effect on stream head
high water mark.
SBIOCGCHUNK Return the chunk size in the u_int pointed to by the argument.
SBIOCSSNAP Set the current snapshot length to the value given in the u_long
pointed to by the ioctl’s final argument. bufmod interprets a
snapshot length value of zero as meaning infinity,so it will not alter
the message. See NOTES for description of effect on stream head high
water mark.
SBIOCGSNAP Returns the current snapshot lengthin the u_long pointed to by the
ioctl’s final argument.
SBIOCSFLAGS Set the current flags to the value given in the u_long pointed to by the
ioctl’s final argument. Possible values are a combination of the fol-
lowing.
SB_SEND_ON_WRITE Transmit the read side chunk on arrival of a
message on the write side.
SB_NO_HEADER Do not add headers to read side messages.
SB_NO_DROPS Do not drop messages due to flow control
upstream.
SB_NO_PROTO_CVT Do not convert M_PROTO messages into
M_DATA.
SB_DEFER_CHUNK Begin buffering on arrival of the second
read side message in a timeout interval.
SBIOCGFLAGS Returns the current flags in the u_long pointed to by the ioctl’s final
argument.
SEE ALSO dlpi(7P), ie(7D), le(7D), pfmod(7M)
NOTES Older versions of bufmod did not support the behavioral flexibilitycontrolled by the
SBIOCSFLAGS ioctl. Applications that wish to take advantage of this flexibility can
guard themselves against old versions of the module by invoking the SBIOCGFLAGS
ioctl and checking for an EINVAL error return.
7M-50 modified 27 Jul 1992










