lkml.org 
[lkml]   [1999]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Devfs, was Re: Migrating to larger numbers
Richard Gooch wrote:
> 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.

Ugh, it will miss the _other_ CD-ROMs in your system.

/dev/parport/cd
/dev/pcmcia/cd
/dev/usb/cd

Doesn't look like the right way to me.

-- Jamie

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

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.104 / U:3.068 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site