Query regarding alloc_chrdev_region()

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

 



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 an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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