I_FDINSERT and STREAMS

stephen.a.rago sar0 at cbnewsl.att.com
Thu Sep 6 14:26:24 AEST 1990


In article <2182 at lectroid.sw.stratus.com>, iservice at gourock.sw.stratus.com (Ian Service) writes:
> 
> 	Can someone please give me a clear explanation of I_FDINSERT and where it
> might be used?

The I_FDINSERT ioctl is a STREAMS ioctl that is used to tell one stream
about another.  It creates an M_PROTO/M_PCPROTO message with optional
user data and stuffs the queue pointer from the driver at the end of
one stream in the message.  The message is sent down the  stream
referenced by the "fd" argument of the ioctl system call.  See
streamio(7) for more details.

It is used in the TLI library when accepting a connection on a stream
other than the one that the connect request came in on.  The only other
use for it I've seen is when creating loopback drivers, one may choose
to link two separate streams together by using this ioctl.

Steve Rago
sar at attunix.att.com



More information about the Comp.unix.questions mailing list