Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/gregkh/driver...
[linux-2.6/verdex.git] / include / linux / ioctl32.h
blobe8c4af32b3bb6ddcbd2005aa57a776d79216aef5
1 #ifndef IOCTL32_H
2 #define IOCTL32_H 1
4 #include <linux/compiler.h> /* for __deprecated */
6 struct file;
8 typedef int (*ioctl_trans_handler_t)(unsigned int, unsigned int,
9 unsigned long, struct file *);
11 struct ioctl_trans {
12 unsigned long cmd;
13 ioctl_trans_handler_t handler;
14 struct ioctl_trans *next;
17 /*
18 * Register an 32bit ioctl translation handler for ioctl cmd.
20 * handler == NULL: use 64bit ioctl handler.
21 * arguments to handler: fd: file descriptor
22 * cmd: ioctl command.
23 * arg: ioctl argument
24 * struct file *file: file descriptor pointer.
25 */
27 #ifdef CONFIG_COMPAT
28 extern int __deprecated register_ioctl32_conversion(unsigned int cmd,
29 ioctl_trans_handler_t handler);
30 extern int __deprecated unregister_ioctl32_conversion(unsigned int cmd);
32 #else
34 #define register_ioctl32_conversion(cmd, handler) ({ 0; })
35 #define unregister_ioctl32_conversion(cmd) ({ 0; })
37 #endif
39 #endif