当它们被访问时,内核通过devfs设备名称映射到合适的设备驱动程序,而不是通过主设备号。
When they are accessed, the kernel maps to the appropriate device driver by devfs device name, rather than by major number.
那么,设备驱动程序开发人员为调用register _——?dev提供的主设备号应该是什么呢?
So, what major number does the device driver developer supply with the call to register_? Dev ?
让特殊文件到内核驱动程序的映射成为可能的是主设备号,而不是真实的设备名称(它和非 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系统无关)。
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.
应用推荐