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