Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-06-2005, 01:40 AM   #1
Elric of Grans
Registered: May 2005
Posts: 46

Rep: Reputation: 15
Major number for device driver...


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
Old 07-12-2005, 04:42 PM   #2
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
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.
Old 07-12-2005, 05:06 PM   #3
Dave Kelly
Registered: Aug 2004
Location: Todd Mission Texas
Distribution: Linspire
Posts: 215

Rep: Reputation: 31
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create device node for dynamically allocated major number appas Programming 5 11-01-2004 10:37 AM
what is a major number and a minor number ? Menestrel Linux - Newbie 2 10-11-2004 08:53 AM
why there is a need for minor number and major number for monitor/keyboard in pc? tripathi Solaris / OpenSolaris 1 11-07-2003 10:36 AM
major/minor number zyan Linux - Newbie 2 06-25-2001 07:57 PM
major /minor number zyan Linux - General 0 06-22-2001 03:26 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration