RE: Device driver Major number

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

 



> However I want the system to dynamically allocate the 
major number

This can be done by passing 0 as the major number to register_chrdev,
It would return the major number assigned.

>From 2.4 onwards the device filesystem or devfs was introduced

If you want to forget using mknod then use devfs_register_chrdev or
devfs_register_blkdev read 
http://www.linux-mag.com/2000-05/gear_01.html

Regards,
Gopu Bhaskar


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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