【发布时间】:2013-12-15 14:02:47
【问题描述】:
linux中IOCTL系统调用的原型是
int ioctl(struct inode *, struct file *, unsigned int, unsigned long);
所有其他文件操作,如 read()、write()、llseek()、mmap() 等。只有 struct file * 作为参数。但是,为什么 IOCTL 调用需要传递 struct inode *。 有什么具体用途吗?
【问题讨论】:
标签: linux linux-kernel linux-device-driver