| LINEDISC(9) | Kernel Developer's Manual | LINEDISC(9) |
linedisc, ttyldisc_add,
ttyldisc_lookup,
ttyldisc_remove —
#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);
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.linedisc functions were added in
NetBSD 1.6.
| November 1, 2000 | NetBSD 9.3 |