Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006

    Major and minor numbers


    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.

  2. #2
    As per my knowledge 1 Major number can have many minor numbers. So I think only minor number will change here.

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    3rd rock from sun - Often seen near moon
    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 Online Linux Terminal

  4. $spacer_open
  5. #4
    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.

  6. #5
    Just Joined!
    Join Date
    Dec 2007
    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts