这个错误网上搜索发现3.0.0.15版本内核 file_operation结构体已经删除了ioctl函数,取代的是:
long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
file_operation结构体在 /usr/src/linux-3.0.0.15/include/linux/fs.h定义。
在file_operation 赋值处修改:
.unlocked_ioctl = xxx_ioctl
时间: 2024-10-14 12:36:32