Re: Serial Driver Name Question (kernels 2.4.x)

Nick Craig-Wood
2002-01-10T09:15:06Z

On Wed, Jan 09, 2002 at 09:36:30AM -0700, Richard Gooch wrote:
> Since you have to change all the drivers anyway, I'd prefer if
> _tty_make_name() was left unchanged, and instead you put the "%d" in
> each driver.name, thusly:
> #ifdef CONFIG_DEVFS_FS
> wod_driver.name = "tts/N%d";
> #else
> wod_driver.name = "ttyN%d";
> #endif
>
> The reason: maximum flexibility in the kinds of names we can
> support. If for some reason we want a name like "tts/N%d_A" and
> "tts/N%d_B" (say a driver with linked ttys, like the pty driver), we
> don't need to make a global change.

I think that is a good idea.

However these names appear in /proc/devices too which looks rather
ugly running with devfs at the moment...

# cat /proc/devices
Character devices:
1 mem
2 pty/m%d
3 pty/s%d
4 ttys/%d
5 serial/%d
10 misc
108 ppp
128 ptm
136 pts/%d
162 raw

--
Nick Craig-Wood
ncw@axis.demon.co.uk