From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: how to see the minor numbers allocated to a driver?
Date: Wed, 4 May 2011 08:32:51 -0700 [thread overview]
Message-ID: <20110504153251.GA17160@kroah.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1105040922390.10333@localhost6.localdomain6>
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
prev parent reply other threads:[~2011-05-04 15:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-04 13:40 how to see the minor numbers allocated to a driver? Robert P. J. Day
2011-05-04 15:32 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110504153251.GA17160@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).