title: Using ioctl communication between Kernel mode and user mode
body: <p>I want to communicate with my kernel module using ioctl. I have written two c program one for kernel module and other for user mode. I am getting this error while compiling kernel module:</p>
  
  <p>error: unknown field ‘ioctl’ specified in initializer</p>
  
  <p>at this line :</p>
  
  <pre><code>struct file_operations Fops = {
   .read = device_read,
   .write = device_write,
   .ioctl = device_ioctl,  ------&gt; at this point error is occuring.
   .open = device_open,
   .release = device_release,
  };
  </code></pre>
  
  <p>any idea why this is happening. </p>
  
  <p>thanks</p>