timod is a STREAMS module for use with the Transport Interface (TI) functions of the Network Services library (see Section 3). The timod module converts a set of ioctl.2 calls into STREAMS messages that may be consumed by a transport protocol provider which supports the Transport Interface. This allows a user to initiate certain TI functions as atomic operations.
The timod module must be pushed onto only a stream terminated by a transport protocol provider which supports the TI.
All STREAMS messages, with the exception of the message types generated from the ioctl() commands described below, are transparently passed to the neighboring STREAMS module or driver. The messages generated from the following ioctl() commands are recognized and processed by the timod module. The format of the ioctl() call is:
Where, on issuance, size is the size of the appropriate TI message to be sent to the transport provider and on return size is the size of the appropriate TI message from the transport provider in response to the issued TI message. buf is a pointer to a buffer large enough to hold the contents of the appropriate TI messages. The TI message types are defined in <sys/tihdr.h>. The possible values for the cmd field are:
[a manual with the abbreviation NETP]
If the ioctl() system call returns with a value greater than 0, the lower 8 bits of the return value will be one of the TI error codes as defined in <sys/tiuser.h>. If the TI error is of type TSYSERR, then the next 8 bits of the return value will contain an error as defined in <sys/errno.h> (see intro.2
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97