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:
)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.
)name.
NULL
is returned if it can not be found.
)name
and return a pointer to it.
If the discipline cannot be found or removed
ttyldisc_remove()
will return
NULL.