Re: Sharing of major number

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

 



On Wednesday 29 September 2004 23:09, Zeeshan Ali wrote:

>     I dont know how to communicate my concern. I can't digest how come
> MAJOR NUMBER identifies the driver rather than the device type as I

  Hmm.. I have been watching this for a while. I thought I do have a possible 
answer to your question. Whenever there are cases like the one you spoke of 
(the video0 and video1 stuff), the drivers would not possibly register a 
major device number (the stuff of char and block numbers is quite irrelevant 
to this discussion), but would register to another interface. 

  For eg, all of USB devices have major number 180, this is registered by 
usbcore (drivers/usb/file.c). The other USB drivers for various devices would 
only use the interface usb_register(), or whatever to register their own 
drivers with the subsystem, and NOT register a major number again.

  I guess a similar thing holds for other 'groups' of devices.

-- 
Regards,
Kiran Kumar Immidi

--
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