Both refer to the same device, and I can refer to the special file that I find most convenient.
两种都引用同一个设备,我可以引用我认为最方便的特殊文件。
When the device node (special file) is created, it must sport the exact same major number that is used internally by the kernel.
当设备节点(特殊文件)创建后,它使用的主设备号必须同内核内部使用的完全相同。
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 系统无关)。
应用推荐