我在ioctl中使用了kernel 2.6.32函数。效果很好。但是,当我在内核3.13.0中运行相同的驱动程序时,它给出了一个错误‘struct file_operations’ has no member named ‘ioctl’
当我将ioctl更改为unlocked_ioctl和compat_ioctl时,编译并模块化了插入。但是在用户应用程序中调用ioctl函数,而不是在模块中调用函数。我必须在用户应用程序中使用什么功能来调用compat
/patches/kdrivers/src/net/wanpipe_cdev_linux.c:133:2: note: in expansion of macro ‘WAN_IOCTL’ | ^~~~~~~~~
/usr/src/wanpipe-7.0.32/patches/kdrivers/src/net/wanp