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 系统无关)。
We then loop, rescanning the SCSI bus (by echoing a command to a special file in the /proc pseudo-filesystem and calling devfsd) until the root device (/dev/sda1 in my case) is present.
然后我们进行循环,重新扫描SCSI总线(通过将命令回送到 /procpseudo-filesystem中的特殊文件,并调用devfsd ),直到出现根设备(我的例子中为 /dev/sda1)。
We then loop, rescanning the SCSI bus (by echoing a command to a special file in the /proc pseudo-filesystem and calling devfsd) until the root device (/dev/sda1 in my case) is present.
然后我们进行循环,重新扫描SCSI总线(通过将命令回送到 /procpseudo-filesystem中的特殊文件,并调用devfsd ),直到出现根设备(我的例子中为 /dev/sda1)。
应用推荐