public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* Query regarding alloc_chrdev_region()
@ 2007-03-29 17:20 Rajat Jain
  2007-03-30  2:10 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Rajat Jain @ 2007-03-29 17:20 UTC (permalink / raw)
  To: kernelnewbies, newbie

Hi,

I was wondering that while using dynamic device numner allocation, can
we ever have a scenario like following (using alloc_chrdev_region):

1) Char Driver A is hooked on Major num X, minor numbers 0-10
2) Char Driver B is hooked on (same) Major num X, minor numbers 11-20

If yes, how will the userland get to know about the dynamically
allocated range (needed to create device nodes), since /proc/devices
only shows major numbers?

Thanks,

Rajat
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-30  6:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-29 17:20 Query regarding alloc_chrdev_region() Rajat Jain
2007-03-30  2:10 ` Greg KH
2007-03-30  2:36   ` Rajat Jain
2007-03-30  5:19     ` Greg KH
2007-03-30  6:26       ` Rajat Jain
2007-03-30  6:34         ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox