Re: Devfs, was Re: Migrating to larger numbers

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 9 Jun 1999 02:03:21 +0100 (BST)


> Anything specific? It provides all kinds of neat tricks. For example,
> if all your CD-ROMs devices are unloaded and you have module
> autoloading, then to find all CD-ROMs on the system, you just do:
> opendir ("/dev/ide/cd");
> loop;
> opendir ("/dev/sr");
> loop;
>
> and your directory scanning code knows that each and every entry
> (besides "." and "..":-) is a Genuine CD-ROM[tm] that actually exists
> on your system. No need to process a large directory, speculatively
> opening device nodes to see if there's some hardware behind them.

I just wonder if this shouldnt be generated by userspace, by ensuring
the right helpful info is in /proc etc

-
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/