Re: LANANA: To Pending Device Number Registrants

Linus Torvalds
2001-05-15T15:16:42Z

On Tue, 15 May 2001, Alan Cox wrote:
>
> For block devices that seems to work well. char devices are harder and I'd
> rather issue the occasional new major than have people registering automatic
> cabbage slicers as a tty or a disk because they cant get a device id.

What are the valid cases that couldn't just register as a misc'ish
driver? The one that stands out is serial devices (you have hundreds of
them), but that's the same argument as a disk anyway.

I'd be much happier with trying to expand on /proc/devices etc, so that
the user _can_ get valid information. Otherwise you end up with the stupid
setup where we keep track of static allocations of numbers for truly
specialty hardware ("I have a lip-frobnicator made by Acme Industries that
I wrote a driver for, and I need 16 minor numbers for it").

Right now we have wasted the minors in the misc device the same way we
wasted the majors in general, and for the same (bogus) reasons.

Linus