include/linux/major.h
此文件说了如何定义linux系统中各个设备的表示方式.
#define MAX_BLKDEV 32
/*
* assignments
*
* devices are as follows (same as minix, so we can use the minix fs):
*
* character block comments
* -------------------- -------------------- --------------------
* 0 - unnamed unnamed minor 0 = true nodev
* 1 - /dev/mem ramdisk
* 2 - floppy
* 3 - hd
* 4 - /dev/tty*
* 5 - /dev/tty; /dev/cua*
* 6 - lp
* 7 - UNUSED
* 8 - scsi disk
* 9 - scsi tape
* 10 - mice
* 11 - scsi cdrom
* 12 - qic02 tape
* 13 - xt disk
* 14 - sound card
* 15 - cdu31a cdrom
* 16 - sockets
* 17 - af_unix
* 18 - af_inet
* 19 - UNUSED
* 20 - UNUSED
* 21 - scsi generic
* 22 - (at2disk)
* 23 - mitsumi cdrom
* 24 - sony535 cdrom
* 25 - matsushita cdrom minors 0..3
* 26 -
* 27 - qic117 tape
*/
阅读(1274) | 评论(0) | 转发(0) |