diff options
| author | Michael S. Tsirkin <mst@mellanox.co.il> | 2005-01-14 23:38:19 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-14 23:38:19 -0800 |
| commit | ba540cf98567d6bb6332c8b11fba1c802126d86b (patch) | |
| tree | 580e143bbbc0236757484ce19c0d4993a1b9eada /include/linux | |
| parent | 8b635618ac76aa0c47714918e631f5f8a36b6747 (diff) | |
[PATCH] macros to detect existance of unlocked_ioctl and ioctl_compat
To make life bearable for out-of kernel modules, the following patch adds 2
macros so that existance of unlocked_ioctl and ioctl_compat can be easily
detected.
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 945dbfabec83..9ca3c328b217 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -905,6 +905,12 @@ typedef struct { typedef int (*read_actor_t)(read_descriptor_t *, struct page *, unsigned long, unsigned long); +/* These macros are for out of kernel modules to test that + * the kernel supports the unlocked_ioctl and compat_ioctl + * fields in struct file_operations. */ +#define HAVE_COMPAT_IOCTL 1 +#define HAVE_UNLOCKED_IOCTL 1 + /* * NOTE: * read, write, poll, fsync, readv, writev, unlocked_ioctl and compat_ioctl |
