Technical data

SunOS 5.5 Ioctl Requests isdnio(7I)
fd must be a NT D-channel file descriptor. arg is ignored.
This command requests ISDN physical layer de-activation. This is not valid for TE
interfaces. A TE interace may be turned off by use of the ISDN_PARAM_POWER
command or by close(2) on the associated fd.
ISDN_ACTIVATION_STATUS
fd is the file descriptor for a D-channel, the management device associated with
an ISDN interface, or the management device associated with the controller. arg
is a pointer to an isdn_activation_status_t structure. Although it is possible for
applications to determine the current activation state with this ioctl, a D-channel
protocol stack should instead process messages from the management pseudo
channel associated with the D-channel.
typedef struct isdn_activation_status {
isdn_interface_t type;
enum isdn_activation_state activation;
} isdn_activation_status_t;
typedef enum isdn_activation_state {
ISDN_OFF = 0, /Interface is powered down /
ISDN_UNPLUGGED, /Power but no-physical connection /
ISDN_DEACTIVATED_REQ /Pending Deactivation, NT Only /
ISDN_DEACTIVATED, /Activation is permitted /
ISDN_ACTIVATE_REQ, /Attempting to activate /
ISDN_ACTIVATED, /Interface is activated /
} isdn_activation_state_t;
The type field should be set to ISDN_TYPE_SELF. The device specific interface
type will be returned in the type field.
The isdn_activation_status_t structure contains the interface type and the
current activation state. type is the interface type and should be set by the caller
to ISDN_TYPE_SELF.
ISDN_INTERFACE_STATUS
The ISDN_INTERFACE_STATUS ioctl retrieves the status and statistics of an
ISDN interface. The requesting channel must own the interface whose status is
being requested or the ioctl will fail. fd is the file descriptor for an ISDN interface
management device. arg is a pointer to a struct isdn_interface_info. If the inter-
face field is set to ISDN_TYPE_SELF, it will be changed in the returned structure
to reflect the proper device-specific interface of the requesting fd .
typedef struct isdn_interface_info {
isdn_interface_t interface;
enum isdn_activation_state activation;
unsigned int ph_ai; /Physical: Activation Ind /
unsigned int ph_di; /Physical: Deactivation Ind /
unsigned int mph_ai; /Management: Activation Ind /
unsigned int mph_di; /Management: Deactivation Ind /
unsigned int mph_ei1; /Management: Error 1 Indication /
modified 7 Apr 1994 7I-157