From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Wed, 4 May 2011 08:32:51 -0700 Subject: how to see the minor numbers allocated to a driver? In-Reply-To: References: Message-ID: <20110504153251.GA17160@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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