Technical data

SunOS 5.5 Ioctl Requests isdnio(7I)
parameter arg is a pointer to an ISDN connection request (isdn_conn_req_t).
Once a data path is established, data flow is started as soon as the path endpoints
become active. Upon taking effect, all state information is reset to initial condi-
tions, as if a channel was just opened.
The isdn_conn_req_t structure is shown below. The five fields include the receive and
transmit ISDN channels, the number of directions of the data path, as well as the data for-
mat. The reserved field must always be set to zero.
/Number of directions for data flow /
typedef enum {
ISDN_PATH_NOCHANGE = 0,/Invalid value /
ISDN_PATH_DISCONNECT, /Disconnect data path /
ISDN_PATH_ONEWAY, /One way data path /
ISDN_PATH_TWOWAY, /Bi-directional data path /
} isdn_path_t;
typedef struct isdn_conn_req {
isdn_chan_t from;
isdn_chan_t to;
isdn_path_t dir; /uni/bi-directional or disconnect /
isdn_format_t format; /data format /
int reserved[4]; /future use - must be 0 /
} isdn_conn_req_t;
To specify a read-only, write-only, or read-write path, or to disconnect a path, the
dir field should be set to ISDN_PATH_ONEWAY, ISDN_PATH_TWOWAY, and
ISDN_PATH_DISCONNECT respectively. To modify the format of a channel-
channel datapath, a user must disconnect the channel and then reconnect with
the desired format.
The returned failure codes and their descriptions are listed below:
EPERM /No permission for intented operation /
EBUSY /Connection in use /
EINVAL /Invalid connection request /
EIO /Connection attempt failed. /
ISDN_GET_FORMAT
The ISDN_GET_FORMAT ioctl gets the ISDN data format of the channel-stream
datapath described by fd. arg is a pointer to an ISDN data format request type
(isdn_format_req_t). ISDN_GET_FORMAT can be issued on any channel to
retrieve the format of any channel it owns. For example, if issued on the TE
management channel,the format of any other te channel can be retrieved.
ISDN_GETCONFIG
The ISDN_GETCONFIG ioctl is used to get the current connection status of all
ISDN channels associated with a particular management STREAM.
ISDN_GETCONFIG also retrieves a hardware identifier and the generic interface
type. arg is an ISDN connection table pointer (isdn_conn_tab_t). The
isdn_conn_tab_t structure is shown below:
modified 7 Apr 1994 7I-163