Re: USB device allocation

Richard B. Johnson (root@chaos.analogic.com)
Tue, 5 Oct 1999 17:48:31 -0400 (EDT)


On Tue, 5 Oct 1999, Jeff Noxon wrote:

> On Tue, Oct 05, 1999 at 01:54:24PM -0700, Dan Hollis wrote:
> > My /dev takes 107kbyte on disk (2,245 entries!), this is even just a small
> > fraction of devices.
>
> This may sound like flamebait or ignorance, but here goes: Why can't
> USB devices just show up dynamically under /proc/usb/dev/ or something
> like that? Are traditional device nodes really necessary?
>
> Or maybe a USB filesystem, ala devpts...
>
> Regards,
>
> Jeff
>

Well nobody asked, but here goes. My system has roughly 1,012 devices.
Their names occupy 6,160 bytes.

So, you either keep all this stuff together in a /dev directory, or
you have a program that builds potentially the same number of device
entries upon startup. It resides on the file-system, and it still has
to have the names within it (although some can be constructed, given
sufficient code). It looks like 6 of one, 1/2 dozen of another to
me.

Or is it that somebody still wants the awful....

/dev/dsk/c0t3d0s0
/dev/dsk/c0t3d0s6
/dev/dsk/c0t3d0s7

... that Sun uses??

A simple shell-script will generate these for you. After all, these
horrible names are simply a 'human readable' association with
major and minor device numbers. You can name them anything. They
don't even have to be in the /dev directory.

Cheers,
Dick Johnson
**** FILE SYSTEM WAS MODIFIED ****
Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/