*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> linedisc (9)              



NAME    [Toc]    [Back]

     ttyldisc_add, ttyldisc_lookup, ttyldisc_remove - extensible line discipline

SYNOPSIS    [Toc]    [Back]

     #include <sys/conf.h>

     ttyldisc_add(struct linesw *disc, int no);

     struct linesw *
     ttyldisc_remove(char *name);

     struct linesw *
     ttyldisc_lookup(char *name);

DESCRIPTION    [Toc]    [Back]

     The NetBSD TTY line discipline framework allows extensibility.  Modules
     that need special line disciplines can add them as convenient and do not
     need to modify tty_conf.c.  Line disciplines are now managed by a string,
     rather than number.

     Once the framework has been initialized, a new line discipline can be
     added by creating and initializing a struct linesw and calling

     The following is a brief description of each function in the framework:

     ttyldisc_add()     Register a line discipline.  The l_name field of the
                        struct linesw should point to a string which is to be
                        the symbolic name of that line discipline.  For compatibility
 purposes, a line discipline number can be
                        passed in no, but for new disciplines this should be
                        set to -1.

     ttyldisc_lookup()  Look up a line discipline by name.  NULL is returned
                        if it can not be found.

     ttyldisc_remove()  Remove a line discipline called name and return a
                        pointer to it.   If the discipline cannot be found or
                        removed ttyldisc_remove() will return NULL.

SEE ALSO    [Toc]    [Back]


HISTORY    [Toc]    [Back]

     The ttyldisc_add functions were added in NetBSD 1.6.

AUTHORS    [Toc]    [Back]

     The NetBSD extensible line discipline framework was created by Eduardo
     Horvath <eeh@NetBSD.ORG>.

BSD                            November 1, 2000                            BSD
[ Back ]
 Similar pages
Name OS Title
tb OpenBSD line discipline for digitizing devices
ldterm Tru64 STREAMS line discipline module
termios OpenBSD general terminal line discipline
termios FreeBSD general terminal line discipline
ng_h4 FreeBSD Netgraph node type that is also an H4 line discipline
ng_tty FreeBSD netgraph node type that is also a line discipline
connld IRIX line discipline for unique stream connections
getty IRIX set terminal type, modes, speed, and line discipline
ldterm HP-UX standard STREAMS terminal line discipline module
getty HP-UX set terminal type, modes, speed, and line discipline
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service