| LINEDISC(9) | Kernel Developer's Manual | LINEDISC(9) |
linedisc,
ttyldisc_add,
ttyldisc_lookup,
ttyldisc_remove — extensible
line discipline framework
#include
<sys/conf.h>
int
ttyldisc_add(struct
linesw *disc, int
no);
struct linesw *
ttyldisc_remove(const
char *name);
struct linesw *
ttyldisc_lookup(const
char *name);
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
ttyldisc_add().
The following is a brief description of each function in the framework:
ttyldisc_add()-1.ttyldisc_lookup()NULL is returned if it can not be found.ttyldisc_remove()ttyldisc_remove() will return
NULL.The linedisc functions were added in
NetBSD 1.6.
The NetBSD extensible line discipline framework was created by Eduardo Horvath ⟨eeh@NetBSD.org⟩.
| November 1, 2000 | NetBSD 11.0 |