table of contents
other sections
isdnctrl(4) | Special files | isdnctrl(4) |
NAME¶
isdnctrl - ISDN control device
SYNOPSIS¶
#include <linux/isdn.h>
DESCRIPTION¶
/dev/isdnctrl is a character device with major number 45 and minor numbers 64 to 127. It allows controlling functionality of the Linux ISDN subsystem.
IOCTL FUNCTIONS¶
Currently, the following ioctl calls are supported:
- IIOCNETAIF
- Add an ISDN network interface.
This function adds a network interface to the kernel's
device table. This interface can be used just like normal eth interfaces.
- IIOCNETASL
- Create a slave interface.
Creates a slave interface for RAW-device
channel-bundling. These devices behave like network-interfaces, execpt they
are invisible to user. Only ISDN parameters can be controlled,
but no IP-parameters. IP-parameters are inherited from the corresponding
master-device.
- Argument:
- arg should point to a zero terminated string of max. 21 characters containing two comma-separated names. The first part is the name of an existing ISDN network device, which will be master. The second part will be the name of the new slave interface.
- Return:
- On success, the name of the new interface is copied to arg. and the call returns 0. On failure, an error code is returned.
- IIOCNETDIF
- Delete a network-interface.
This call deletes an existing ISDN network
interface.
- IIOCNETSCF
- Set configurable parameters of an ISDN network interface.
This call replaces all ISDN related
parameters of an interface by the parameters given.
- IIOCNETGCF
- Get configurable parameters of an ISDN network interface.
This call returns all ISDN related
parameters of an interface.
- IIOCNETANM
- Add a phone number to an ISDN network interface.
This call adds a phone number to an existing network
interface.
- IIOCNETDNM
- Delete a phone number from an ISDN network interface.
This call deletes a phone number from an existing network
interface.
- IIOCNETGNM
- Get list of phone numbers from an ISDN network interface.
This call returns the list of phone numbers associated to
an existing network interface.
- Argument:
- arg shoud point to a a union of struct isdn_net_ioctl_phone and a buffer, large enough to hold a concatenated list of strings containing the phone numbers.
- Return:
- On success, the call returns 0 and the list of phone numbers is returned as a space-separated list of number-strings terminated by a NULL byte.
- IIOCNETDIL
- Trigger dialing of an ISDN network interface.
This call initiates dialing of an ISDN
network interface, if it is not connected. Normally, this ioctl is not needed,
because ISDN network interface perform dial on demand by
deafult.
- IIOCNETHUP
- Hangup an ISDN network interface.
This call initiates hangup of an ISDN
network interface, if it is connected.
- IIOCNETALN
- Add a link of an MPP-configured ISDN network interface.
This call initiates dialing of a Multilink-PPP slave
ISDN network interface, if it is not connected.
- IIOCNETDLN
- Hangup an MPP-configured ISDN network interface.
This call initiates hangup of an Multilink-PPP
ISDN network interface, if it is connected.
- IIOCNETARU
- Add a timeout rule to an ISDN network interface.
This call adds a timeout rule to an existing interface.
- IIOCNETDRU
- Delete a timeout rule from an ISDN network interface.
This call deletes a timeout rule from an existing
interface.
- IIOCNETGRU
- Get a timeout rule from an ISDN network interface.
This call returns a timeout rule from an existing
interface.
- IIOCNETBUD
- Handle budget accounting of an ISDN network interface.
- Argument and Return:
- to be defined.
- IIOCSETVER
- Set verbosity of link level.
- IIOCSETGST
- Set global stop flag of link level.
- IIOCSETBRJ
- Set busreject flag of a lowlevel driver.
- IIOCSIGPRF
- Enable signaling on change of modem profiles.
With this call, the calling process is registered to
receive a SIGIO on every change of any register of any ttyI. Thus it can read
register settings and save them to a file. The calling process has to keep the
device open in order to receive notifications. As soon as it closes the
device, registration is deleted.
- IIOCGETPRF
- Get all modem register settings.
With this call, all modem registers of all ttyI devices
can be read.
- IIOCSETPRF
- Set all modem register settings.
With this call, all modem registers of all ttyI devices
can be written.
- IIOCSETMAP
- Set Mapping table.
This call is used to set EAZ/MSN mapping of a lowlevel
driver.
- IIOCGETMAP
- Get Mapping table.
This call is used to get EAZ/MSN mapping of a lowlevel
driver.
- IIOCDRVCTL
- Lowlevel driver ioctl.
This call is used for controlling various lowlevel
drivers. The ioctl-code for this command is assembled by adding IIOCDRVCTL
(128) and the desired driver ioctl-code. Therefore, a lowlevel driver can
understand a maximum of 127 different ioctls.
- Argument:
- arg should point to a struct isdn_ioctl_struct containing the necessary parameters, especially the driver-Id must be filled correctly. The arg component inside isdn_ioctl_struct is handed down to the driver's ioctl function. Its meaning is not defined here and depends on the lowlevel driver. See documentation for the various lewlevel drivers for information about driver- specific ioctl.
- Return:
- The return code depends on the driver's ioctl function. Usually, 0 means no error.
AUTHOR¶
Fritz Elfert <fritz@isdn4linux.de>
SEE ALSO¶
isdninfo(4), icnctrl(4).
1999/09/06 | ISDN 4 Linux 3.13 |