1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
|
.\" $Id: isdnctrl.man.in,v 1.4 1999/09/06 08:03:23 fritz Exp $
.\"
.\" CHECKIN $Date: 1999/09/06 08:03:23 $
.\"
.\" Process this file with
.\" groff -man -Tascii isdnctrl.4 for ASCII output, or
.\" groff -man -Tps isdnctrl.4 for PostScript output
.\"
.TH isdnctrl 4 "1999/09/06" "ISDN 4 Linux 3.27" "Special files"
.SH NAME
isdnctrl \- ISDN control device
.SH SYNOPSIS
.B #include <linux/isdn.h>
.SH DESCRIPTION
.I /dev/isdnctrl
is a character device with major number
.B 45
and minor numbers
.BR 64 " to " 127 .
It allows controlling functionality of the Linux
.SM ISDN
subsystem.
.SH IOCTL FUNCTIONS
Currently, the following ioctl calls are supported:
.TP
.B IIOCNETAIF
Add an
.SM ISDN
network interface.
.RS
This function adds a network interface to the kernel's device table.
This interface can be used just like normal eth interfaces.
.TP
Argument:
.I arg
should point to a zero terminated string of max. 10 characters.
if
.I arg
is NULL, the kernel assigns a name.
.TP
Return:
On success, the name of the new interface is copied to
.IR arg .
and the call returns 0. On failure, an error code is returned.
.RE
.TP
.B IIOCNETASL
Create a slave interface.
.RS
Creates a slave interface for RAW-device channel-bundling.
These devices behave like network-interfaces, execpt they
are invisible to user. Only
.SM ISDN
parameters can be controlled, but no IP-parameters. IP-parameters
are inherited from the corresponding master-device.
.TP
Argument:
.I 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
.SM
ISDN
network device, which will be master. The second part will be the
name of the new slave interface.
.TP
Return:
On success, the name of the new interface is copied to
.IR arg .
and the call returns 0. On failure, an error code is returned.
.RE
.TP
.B IIOCNETDIF
Delete a network-interface.
.RS
This call deletes an existing
.SM ISDN
network interface.
.TP
Argument:
.I arg
should point to a zero terminated string of max. 10 characters
naming an existing interface which will be deleted. If the interface
is a master interface, all it's slave-interfaces will be deleted also.
.TP
Return:
On success, the call returns 0. On failure, an error code is returned.
.RE
.TP
.B IIOCNETSCF
Set configurable parameters of an
.SM ISDN
network interface.
.RS
This call replaces all
.SM ISDN
related parameters of an interface by the parameters given.
.TP
Argument:
.I arg
shoud point to a
.I struct isdn_net_ioctl_cfg
(defined in linux/isdn.h)
.TP
Return:
On success, the call returns 0. On failure, an error code is returned.
.RE
.TP
.B IIOCNETGCF
Get configurable parameters of an
.SM ISDN
network interface.
.RS
This call returns all
.SM ISDN
related parameters of an interface.
.TP
Argument:
.I arg
shoud point to a
.I struct isdn_net_ioctl_cfg
(defined in linux/isdn.h) which will be filled by the current setup.
.TP
Return:
On success, the call returns 0 and the interface-setup is copied to
*arg. On failure, an error code is returned.
.RE
.TP
.B IIOCNETANM
Add a phone number to an
.SM ISDN
network interface.
.RS
This call adds a phone number to an existing network interface.
.TP
Argument:
.I arg
shoud point to a
.I struct isdn_net_ioctl_phone
which contains necessary information.
.TP
Return:
On success, the call returns 0 and the phone number is added to
either outgoing or incoming number list. On failure, an error code is returned.
.RE
.TP
.B IIOCNETDNM
Delete a phone number from an
.SM ISDN
network interface.
.RS
This call deletes a phone number from an existing network interface.
.TP
Argument:
.I arg
shoud point to a
.I struct isdn_net_ioctl_phone
which contains necessary information.
.TP
Return:
On success, the call returns 0 and the phone number is deleted from
either outgoing or incoming number list. On failure, an error code is returned.
.RE
.TP
.B IIOCNETGNM
Get list of phone numbers from an
.SM ISDN
network interface.
.RS
This call returns the list of phone numbers associated to an existing
network interface.
.TP
Argument:
.I arg
shoud point to a a union of
.I struct isdn_net_ioctl_phone
and a buffer, large enough to hold a concatenated list of
strings containing the phone numbers.
.TP
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.
.RE
.TP
.B IIOCNETDIL
Trigger dialing of an
.SM ISDN
network interface.
.RS
This call initiates dialing of an
.SM ISDN
network interface, if it is not connected. Normally, this ioctl is not
needed, because
.SM ISDN
network interface perform dial on demand by default.
.TP
Argument:
.I arg
should point to a zero terminated string of max. 10 characters naming
the desired interface.
.TP
Return:
On success, the call returns 0 and the interface starts dialing.
.RE
.TP
.B IIOCNETHUP
Hangup an
.SM ISDN
network interface.
.RS
This call initiates hangup of an
.SM ISDN
network interface, if it is connected.
.TP
Argument:
.I arg
should point to a zero terminated string of max. 10 characters naming
the desired interface.
.TP
Return:
On success, the call returns 0 and the interface hangs up.
.RE
.TP
.B IIOCNETALN
Add a link of an MPP-configured
.SM ISDN
network interface.
.RS
This call initiates dialing of a Multilink-PPP slave
.SM ISDN
network interface, if it is not connected.
.TP
Argument:
.I arg
should point to a zero terminated string of max. 10 characters naming
the desired interface.
.TP
Return:
On success, the call returns 0 and the interface starts dialing.
.RE
.TP
.B IIOCNETDLN
Hangup an MPP-configured
.SM ISDN
network interface.
.RS
This call initiates hangup of an Multilink-PPP
.SM ISDN
network interface, if it is connected.
.TP
Argument:
.I arg
should point to a zero terminated string of max. 10 characters naming
the desired interface.
.TP
Return:
On success, the call returns 0 and the interface hangs up.
.RE
.TP
.B IIOCNETARU
Add a timeout rule to an
.SM ISDN
network interface.
.RS
This call adds a timeout rule to an existing interface.
.TP
Argument:
.I arg
should point to a
.I struct isdn_ioctl_timeout_rule
containing the necessary parameters.
.TP
Return:
On success, the call returns 0 and the rule is added to the
rule list of the interface.
.RE
.TP
.B IIOCNETDRU
Delete a timeout rule from an
.SM ISDN
network interface.
.RS
This call deletes a timeout rule from an existing interface.
.TP
Argument:
.I arg
should point to a
.I struct isdn_ioctl_timeout_rule
containing the necessary parameters.
.TP
Return:
On success, the call returns 0 and the rule is deleted from the
rule list of the interface.
.RE
.TP
.B IIOCNETGRU
Get a timeout rule from an
.SM ISDN
network interface.
.RS
This call returns a timeout rule from an existing interface.
.TP
Argument:
.I arg
should point to a
.I struct isdn_ioctl_timeout_rule
containing the necessary parameters.
.TP
Return:
On success, the call returns 0 and the struct is filled from the
rule list of the interface.
.RE
.TP
.B IIOCNETBUD
Handle budget accounting of an
.SM ISDN
network interface.
.RS
.TP
Argument and Return:
to be defined.
.RE
.TP
.B IIOCSETVER
Set verbosity of link level.
.RS
.TP
Argument:
.I arg
is an integer, defining the new verbose value.
.TP
Return:
This call always returns 0.
.RE
.TP
.B IIOCSETGST
Set global stop flag of link level.
.RS
.TP
Argument:
.I arg
is an integer, defining the new stop flag value (0 or !0).
.TP
Return:
This call always returns 0.
.RE
.TP
.B IIOCSETBRJ
Set busreject flag of a lowlevel driver.
.RS
.TP
Argument:
.I arg
should point to an
.I struct isdn_ioctl_struct
containing the driver's ID and the value of the busreject flag.
.TP
Return:
On success, the call returns 0 and the busreject flag of the selected
driver is set according the given parameter.
.RE
.TP
.B IIOCSIGPRF
Enable signaling on change of modem profiles.
.RS
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.
.TP
Argument:
none
.TP
Return:
This call always returns 0.
.RE
.TP
.B IIOCGETPRF
Get all modem register settings.
.RS
With this call, all modem registers of all ttyI devices can be
read.
.TP
Argument:
.I arg
should point to a buffer of length
.RB "( " ISDN_MODEM_ANZREG " + " ISDN_MSNLEN " ) * " ISDN_MAX_CHANNELS .
.TP
Return:
On return, the provided buffer is filled with the register values.
.RE
.TP
.B IIOCSETPRF
Set all modem register settings.
.RS
With this call, all modem registers of all ttyI devices can be
written.
.TP
Argument:
.I arg
should point to a buffer of length
.RB "( " ISDN_MODEM_ANZREG " + " ISDN_MSNLEN " ) * " ISDN_MAX_CHANNELS .
filled with the values of all modem registers.
.TP
Return:
On return, the modem registers are set from the contents of the
provided buffer.
.RE
.TP
.B IIOCSETMAP
Set Mapping table.
.RS
This call is used to set EAZ/MSN mapping of a lowlevel driver.
.TP
Argument:
.I arg
should point to a
.I struct isdn_ioctl_struct
containing the necessary parameters.
.TP
Return:
On success, the mapping table is set from the given parameters
an the call returns 0.
.RE
.TP
.B IIOCGETMAP
Get Mapping table.
.RS
This call is used to get EAZ/MSN mapping of a lowlevel driver.
.TP
Argument:
.I arg
should point to a
.I struct isdn_ioctl_struct
containing the necessary parameters.
.TP
Return:
On success, the current mapping table of the given driver is returned
and the call returns 0.
.RE
.TP
.B IIOCDRVCTL
Lowlevel driver ioctl.
.RS
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.
.TP
Argument:
.I arg
should point to a
.I 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.
.TP
Return:
The return code depends on the driver's ioctl function. Usually,
0 means no error.
.RE
.SH AUTHOR
Fritz Elfert <fritz@isdn4linux.de>
.SH SEE ALSO
.BR isdninfo "(4), " icnctrl (4).
|