专注ARM体系结构,移动平台开发,著有《深入浅出嵌入式底层软件开发》北航出版社 ... nlink_t st_nlink; /* 硬链接数 */ dev_t st_rdev; /* 特殊文件设备号 */ off_t st_size; /* 文件字节大小 */ ...
基于10个网页-相关网页
当设备节点(特殊文件)创建后,它使用的主设备号必须同内核内部使用的完全相同。
When the device node (special file) is created, it must sport the exact same major number that is used internally by the kernel.
让特殊文件到内核驱动程序的映射成为可能的是主设备号,而不是真实的设备名称(它和非 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.
应用推荐