Linux master, sub-device number

Source: Internet
Author: User
For more information, see <G id = "1"> linux Enterprise Application> Linux server application </G>. Major is the device number. For example, if the device Number of stdin is 0, the operating system uses it to identify the device driver that should be called. The relative size of major and minor is irrelevant.

Minor is generally used to identify the sub-device of a device with the same driver, or for different usage of a device,

For example, a 3.5 "soft drive can read and write MB disks or kb disks, which can form two devices. major is the same: the same driver is called, and minor is different: the parameters for the driver are different, therefore, minor is actually the device number. major and minor determine the only method to access a device. Most devices do not require minor, which defaults to 0.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.