Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写新的内核模块并添加实现新的 IOCTL。 IOCTL 的编号有什么我应该遵循的规则吗? 也许有一些“用户范围”?
我在嵌入式平台上使用内核 2.6.21。
IOCTL 被定义为依赖于设备——如果有“标准”ioctl 供人们实现,这些将是系统调用,例如readand write。
read
write
ioctl 编号有一些约定: