lkml.org 
[lkml]   [2011]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectWhich one corresponds to ioctl in the file_operations struct in linux/fs.h?
From
Hi,

I have some driver code for older version of kernel. It refers to
ioctl in the file_operations struct. But this field is change in
kernel 3.0.0-13

I find the following in linux/fs.h

1566   long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
1567   long (*compat_ioctl) (struct file *, unsigned int, unsigned long);

Does anybody know which one I should use in order to migrate the
driver code to the newer version of kernel? Thanks!

--
Regards,
Peng
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2011-12-01 08:43    [W:0.071 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site