Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!att!cbnewsl!sar0 From: sar0@cbnewsl.att.com (stephen.a.rago) Newsgroups: comp.unix.questions Subject: Re: I_FDINSERT and STREAMS Message-ID: <1990Sep6.042624.14044@cbnewsl.att.com> Date: 6 Sep 90 04:26:24 GMT References: <2182@lectroid.sw.stratus.com> Distribution: usa Organization: AT&T Bell Laboratories Lines: 19 In article <2182@lectroid.sw.stratus.com>, iservice@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@attunix.att.com