Subject: Re: Attack of the clones: turning sl*, strip*, ppp* into cloners.
To: None <>
From: Christos Zoulas <>
List: tech-net
Date: 02/25/2002 21:00:34
In article <>,
Andrew Brown <> wrote:
>>> 2) the line discipline open routine needs to know the requested unit
>>> number.
>>> 2) two options:
>>> a) we change the signature of (struct linesw)'s l_open routine to
>>> take a third "int" parameter.
>>> b) we add an "int t_lunit;" field to "struct tty", defaulting to
>>> "-1"; TIOCSLINED fills it in before calling the line discipline's
>>> l_open routine if one was specified.

If we are going to redo the line discipline stuff, I'd rather see
TIOCSETD to take, or whatever is appropriate.

struct linedisc {
	char l_name[20];
	int l_flags;
	int l_unit;