June 2017
Intermediate to advanced
478 pages
13h 14m
English
Block devices are also associated with a device node, which also has major and minor numbers.
With block devices, the major number is used to identify the device driver and the minor number is used to identify the partition. Let's look at the MMC driver on the BeagleBone Black as an example:
# ls -l /dev/mmcblk*brw-rw---- 1 root disk 179, 0 Jan 1 2000 /dev/mmcblk0brw-rw---- 1 root disk 179, 1 Jan 1 2000 /dev/mmcblk0p1brw-rw---- 1 root disk 179, 2 Jan 1 2000 /dev/mmcblk0p2brw-rw---- 1 root disk 179, 8 Jan 1 2000 ...
Read now
Unlock full access