9.9 Device Files
Not only files and directories are managed in the Linux file system, but also so-called devices. These are specially marked files that do not store data, but rather connect to the Linux kernel (see Table 9.10).
Devices enable access to many hardware components of the computer, such as hard disks/SSDs, serial and parallel interfaces, the main memory (RAM), and so on. Devices are characterized by three pieces of information: the major device number, the minor device number, and the type of access (block-based or character-based).
The major device number specifies which Linux kernel driver is responsible for management. Most drivers are listed with their major device number on the following page: https://www.kernel.org/doc/Documentation/admin-guide/devices.txt ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access