On Fri, 11 Apr 2008, Rene Herman wrote:

> On 11-04-08 11:56, Robert P. J. Day wrote:
>
> >   i know well enough that, if i write and load a driver that allocates
> > a device major number and one or more minor numbers, i can see the
> > allocated major number via /proc/devices.  but is there a userspace
> > way to see the minor number(s)?  or, as LDD3 implies, it's my job to
> > just *know* what those would have been?  thanks.

> Historically, no way. The driver just gets everything for its
> registered major and has to switch on minor itself. That is, no such
> thing as "allocated" minors as far as the system is concerned.

just to be pedantic here, when you say there are no such things as
"allocated" minors, i'm assuming that what you mean is that it's
always up to a loaded module to choose what minors it wants to try to
allocate and register, right?  or, put another way, there are no such
things as *pre*-allocated minors.  am i parsing that the right way?

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to