LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Major number for device driver... (https://www.linuxquestions.org/questions/programming-9/major-number-for-device-driver-340458/)

Elric of Grans 07-06-2005 12:40 AM

Major number for device driver...
 
G'Day,

I am writing a driver for a 1-wire interface device, and was a little stuck on the major number for register_chrdev(). I checked Documentation/devices.txt, but there does not yet seem to be anything assigned (no surprise, really). I understand I can pick an unassigned numer, but that could become a pain in future, so if possible I would like to stick with an existing device. My question is simply this: does anyone know whether or not there is an existing device similar enough to 1-wire that I could use it? Perhaps that line of thinking is barking up the wrong tree, but it makes sense to me at least ;)

exvor 07-12-2005 03:42 PM

Ya know i looked all over google and couldent come up with a major number refrence.

seams silly that there isent one because it would cause no overlap.

Dave Kelly 07-12-2005 04:06 PM

Look in ?????/src/Documentation/Devices.txt

It somewhere in the source code for the kernal

Mine is here:
My Documents/code/ipstack/linux/Documentation/devices.txt


All times are GMT -5. The time now is 09:23 PM.