The difference between Linux/dev,/sys/devices and/sys/dev __linux

Source: Internet
Author: User

/dev, device file storage directory, the application through the read and write to these files and control, can access the actual equipment;


/sys/devices directory, according to the type of bus attached to the device, organized into a hierarchical structure, saving all the equipment of the system, is the file system management equipment, the most important directory structure;

This is the directory structure that the kernel devices are layered by bus type, and all the devices in the devices are connected under a certain bus, where each of the specific buses can be

Find symbolic links for each specific device, which is also part of the Linux Unified device model;


Under/sys/dev, there are two subdirectories, block and char, which store the primary and secondary numbers of blocks and character devices, in the form of (Major:minor), which point to the devices in the/sys/devices directory.


1. The SYSFS mount point is the/sys directory, SYSFS is a virtual file system (there are other virtual file systems, such as USBFS and PROCFS), SYSFS export the kernel's data structure.
2./sys/dev/and/sys/devices are SYSFS organized according to Object-oriented Management, and SYSFS are mainly used to describe the device-driven model in Linux kernel 2.6, user-state
The background program (UDEV) Dynamically periodically scans the property entries in the/sys directory to automate the management of device files (also known as device nodes), thereby establishing or deleting corresponding device files in the/dev directory.







Related Article

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.