isdninfo(4)


NAME

   isdninfo - ISDN status device

SYNOPSIS

   #include <linux/isdn.h>

DESCRIPTION

   /dev/isdninfo  is  a  character  device  with major number 45 and minor
   number 255.   It  delivers  status  information  from  the  Linux  ISDN
   subsystem to user level.

DATA FORMAT

   When  reading  from  this  device, the current status of the Linux ISDN
   subsystem is delivered in 6 lines of text. Each line starts with a  tag
   string followed by a colon and whitespace. After that the status values
   are appended separated by whitespace.

   idmap  is the tag of the first line. In this  line  for  every  virtual
          channel,  the  Id-string of the corresponding lowlevel driver is
          shown. If no driver is loaded, a - (hyphen) is shown.

   chmap  is the tag of line 2. In this line for  every  virtual  channel,
          the  channel  number  of  the  corresponding  lowlevel driver is
          shown. If no driver is loaded, -1 is shown.

   drmap  is the tag of line 3. In this line for  every  virtual  channel,
          the  index number of the corresponding lowlevel driver is shown.
          If no driver is loaded, -1 is shown.

   usage  is the tag of line 4. In this line for  every  virtual  channel,
          the  current  usage  is shown. The following usage constants are
          defined:

          ISDN_USAGE_NONE (0)
                 Unused channel

          ISDN_USAGE_RAW (1)
                 Channel used by raw device (currently unsupported)

          ISDN_USAGE_MODEM (2)
                 Channel used by some ttyI

          ISDN_USAGE_NET (3)
                 Channel used by an ISDN net-interface

          ISDN_USAGE_VOICE (4)
                 Channel used by some ttyI in voice mode.

          ISDN_USAGE_EXCLUSIVE (64)
                 Channel exclusively preserved for a  net-interface.  This
                 value is logically or'ed with one of the other codes.

          ISDN_USAGE_OUTGOING (128)
                 Channel  is  used outgoing. This value is logically or'ed
                 with one of the other codes. It is set, when dialling  is
                 started  and  reset, when either dialling failed or after
                 hangup. Therefore, it is not always an indicator  for  an
                 established  connection.  To get a reliable indicator for
                 an established connection, the driver flags  (see  below)
                 have to be inspected also.

   flags  is  the  tag of line 5. In this line for every driver slot, it's
          B-Channel status is shown. If no driver is registered in a slot,
          a  ? is shown.  For every established B-Channel of the driver, a
          bit is set in the shown value. The  driver's  first  channel  is
          mapped to bit 0, the second channel to bit 1 and so on.

   phone  is  the  tag  of line 6. In this line for every virtual channel,
          the remote phone number is shown if the channel is active. A ???
          is shown, if the channel is inactive.

BLOCKING BEHAVIOUR

   After  opening  the  device,  at  most  6  lines  can be read by a user
   process.  After that, the user process is blocked.  Whenever  a  status
   change  happens,  the process is allowed to read 6 more lines, starting
   with line one.

IOCTL FUNCTIONS

   Currently, there are two ioctl calls supported:

   IIOCGETDVR
          Get Revision information.
          Returns an unsigned long  value  v,  representing  various  user
          level interface revisions, where

          (v & 0xff)
                 is the revision of the modem-register info, available via
                 ioctl on /dev/isdnctrl.

          ((v >> 8) & 0xff)
                 is  the  revision  of  the  net-interface  config   data,
                 available via ioctl on /dev/isdnctrl.  and

          ((v >> 16) & 0xff)
                 is  the  revision of the data delivered via /dev/isdninfo
                 itself.

   IIOCGETCPS
          Get transfer statistics.
          Returns the number of bytes transferred so far for  all  virtual
          channels. The third parameter should be a pointer to an array of
          unsigned long of size  ISDN_MAX_CHANNELS  *  2.  This  array  is
          filled with the byte counter values upon return.

OTHER CONSTANTS

   There     are     some     more    useful    constants    defined    in
   /usr/include/linux/isdn.h:

   ISDN_TTY_MAJOR
          The major device number of /dev/ttyI.

   ISDN_TTYAUX_MAJOR
          The major device number of /dev/cui.

   ISDN_MAJOR
          The  major  device  number  of   /dev/isdnctrl,   /dev/isdninfo,
          /dev/ippp and /dev/isdn

   ISDN_MAX_DRIVERS
          The number of driver slots.

   ISDN_MAX_CHANNELS
          The number of virtual channels.

   ISDN_MINOR_CTRL
          The minor device number of /dev/isdnctrl0.

   ISDN_MINOR_CTRLMAX
          The minor device number of /dev/isdnctrl63.

   ISDN_MINOR_PPP
          The minor device number of /dev/ippp0.

   ISDN_MINOR_PPPMAX
          The minor device number of /dev/ippp64.

   ISDN_MINOR_STATUS
          The minor device number of /dev/isdninfo.

   Other  constants,  necessary for ioctl's on /dev/isdnctrl are listed in
   isdnctrl(4).

AUTHOR

   Fritz Elfert <fritz@isdn4linux.de>

SEE ALSO

   isdnctrl(4), icnctrl(4).


More Linux Commands

manpages/authunix_create_default.3.html
authunix_create_default(3) - library routines for remote pro
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s

manpages/glActiveTextureARB.3gl.html
glActiveTextureARB(3gl) - select active texture unit........
glActiveTextureARB selects which texture unit subsequent texture state calls will affect. The number of texture units an implementation supports is implementati

manpages/XvListImageFormats.3.html
XvListImageFormats(3) - return list of image formats support
XvListImageFormats(3) returns the XvImageFormatValues supported by the specified port. This list should be freed with XFree(3). Returned Values XvImageFormatVal

manpages/git-mailsplit.1.html
git-mailsplit(1) - Simple UNIX mbox splitter program........
Splits a mbox file or a Maildir into a list of files: 0001 0002 .. in the specified directory so you can process them further from there. Important Maildir spli

manpages/gpgv2.1.html
gpgv2(1) - Verify OpenPGP signatures - Linux manual page....
gpgv2 is an OpenPGP signature verification tool. This program is actually a stripped-down version of gpg which is only able to check signatures. It is somewhat

manpages/Tk_BindEvent.3.html
Tk_BindEvent(3) - invoke scripts in response to X events....
These procedures provide a general-purpose mechanism for creating and invoking bindings. Bindings are organized in terms of binding tables. A binding table cons

manpages/cyrus.conf.5.html
cyrus.conf(5) - Cyrus configuration file - Linux man page...
/etc/cyrus.conf is the configuration file for the Cyrus master process. It defines the startup procedures, services and events to be spawned by master. The /etc

manpages/gnutls_strerror_name.3.html
gnutls_strerror_name(3) - API function - Linux manual page
Return the GnuTLS error code define as a string. For example, gnutls_strerror_name (GNUTLS_E_DH_PRIME_UNACCEPTABLE) will return the string GNUTLS_E_DH_PRIME_UNA

manpages/significandl.3.html
significandl(3) - get mantissa of floating-point number.....
The significand() function returns the mantissa of x scaled to the range [1,2). It is equivalent to scalb(x, (double) -ilogb(x)) This function exists mainly for

manpages/prctl.2.html
prctl(2) - operations on a process - Linux manual page......
prctl() is called with a first argument describing what to do (with values defined in &lt;linux/prctl.h&gt;), and further arguments with a significance depending on t

manpages/XvQueryExtension.3.html
XvQueryExtension(3) - return version and release of extensio
XvQueryExtension(3) returns the version and release numbers for the Xv video extension currently loaded on the system. The extension major request number, event

manpages/atd.8.html
atd(8) - run jobs queued for later execution (Man Page).....
atd runs jobs queued by at(1). OPTIONS -l Specifies a limiting load factor, over which batch jobs should not be run, instead of the compile-time choice of 0.8.





We can't live, work or learn in freedom unless the software we use is free.