Re: how to see the minor numbers allocated to a driver?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 04, 2011 at 09:40:52AM -0400, Robert P. J. Day wrote:
> 
>   something i was curious about way back when -- given that
> register_chrdev_region() and alloc_chrdev_region() allow one to
> specify a range of minor numbers desired that doesn't necessarily have
> to start at zero, is there a way from user space to see what those
> numbers are after the device registration is complete?

/sys/dev/char/ after the driver has registered those minor numbers with
the driver core is your best bet.

hope this helps,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux