On Fri, 11 Apr 2008, Scott Lovenberg wrote: > Robert P. J. Day wrote: > > 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? > Hrm... that could be an insmod parameter, perhaps? Have you tried > modinfo on the usb driver? It always seems fairly random to me, but > then again, I've never paid attention to it. Also, there's 'mknod' > and 'mknodat' in man 2, user side. I don't know if that helps at > all. keep in mind, i'm not talking about a specific driver in the kernel, i'm just talking about a loadable module *in general*. and i think rene's reply summarizes the current situation. 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 ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ