I'm trying to implement a driver for RTC (Real Time Clock). I used ioctl
function in kernel 2.6.32
. It worked fine. But when I run same driver in kernel 3.13.0, it gave an error ‘struct file_operations’ has no member named ‘ioctl’
when I changed ioctl
to unlocked_ioctl
and compat_ioctl
, compiled and moduled inserted.
But calling ioctl
in user application not invoking ioctl
function in module. What function I have to use in user application to invoke compat_ioctl
or unlocked_ioctl
?