When the device node (special file) is created, it must sport the exact same major number that is used internally by the kernel.
当设备节点(特殊文件)创建后,它使用的主设备号必须同内核内部使用的完全相同。
When they are accessed, the kernel maps to the appropriate device driver by devfs device name, rather than by major number.
当它们被访问时,内核通过devfs设备名称映射到合适的设备驱动程序,而不是通过主设备号。
The device associated with the frame buffer is /dev/fb0 (Major Number 29, Minor Number 0).
与帧缓冲区有关的设备是 /dev/fb0(主设备号29,次设备号0)。
Then, throughout the Linux world, this particular device (and only this device) will be associated with this particular major number.
那么,在整个Linux世界中,这个特定的设备(也只有这个设备)才会被关联到那个特定的主设备号。
The mapping from special file to kernel driver is made possible by the major number, not the actual device name, which is irrelevant to a non-devfs system.
让特殊文件到内核驱动程序的映射成为可能的是主设备号,而不是真实的设备名称(它和非 devfs 系统无关)。
The mapping from special file to kernel driver is made possible by the major number, not the actual device name, which is irrelevant to a non-devfs system.
让特殊文件到内核驱动程序的映射成为可能的是主设备号,而不是真实的设备名称(它和非 devfs 系统无关)。
应用推荐