Results 1 to 5 of 5
Hi,
I am having doubt regarding Major no& minor no in drivers.
suppose iam having 3 same serial drivers for one device.
1) is major no is same for all ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-26-2007 #1Just Joined!
- Join Date
- Nov 2006
- Location
- Hyderabad
- Posts
- 87
Major and minor numbers
Hi,
I am having doubt regarding Major no& minor no in drivers.
suppose iam having 3 same serial drivers for one device.
1) is major no is same for all 3 drivers ?
2) where the minor no's will do what is contribution of minor no's.
3)and how the user would know how to access that particular driver
could any body please explain me.
- 12-04-2007 #2
As per my knowledge 1 Major number can have many minor numbers. So I think only minor number will change here.
- 12-04-2007 #3
Check for doc Here
First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-----
FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org
- 12-07-2007 #4Just Joined!
- Join Date
- Dec 2007
- Posts
- 6
Major number identifies the driver.
Minor number identified the instance of the device.
YOu can have multiple devices of same type.
For one device type you can have only one driver.
- 12-18-2007 #5Just Joined!
- Join Date
- Dec 2007
- Location
- Madrid
- Posts
- 4
Major number is used as index into a table of functions, Then each different driver (set of C functions that constitute an entry of the table) has to have a different major number.
Minor number is a parameter that is passed to these functions, usually to distinguish between different physical devices handled by the same driver (set of functions)


Reply With Quote
