Subversion Repositories shark

Rev

Rev 422 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 1
#ifndef IOCTL32_H
2
#define IOCTL32_H 1
3
 
4
struct file;
5
 
6
extern long sys_ioctl(unsigned int, unsigned int, unsigned long);
7
 
8
/*
9
 * Register an 32bit ioctl translation handler for ioctl cmd.
10
 *
11
 * handler == NULL: use 64bit ioctl handler.
12
 * arguments to handler:  fd: file descriptor
13
 *                        cmd: ioctl command.
14
 *                        arg: ioctl argument
15
 *                        struct file *file: file descriptor pointer.
16
 */
17
 
18
extern int register_ioctl32_conversion(unsigned int cmd, int (*handler)(unsigned int, unsigned int, unsigned long, struct file *));
19
 
20
extern int unregister_ioctl32_conversion(unsigned int cmd);
21
 
22
typedef int (*ioctl_trans_handler_t)(unsigned int, unsigned int, unsigned long, struct file *);
23
 
24
struct ioctl_trans {
25
        unsigned long cmd;
26
        ioctl_trans_handler_t handler;
27
        struct ioctl_trans *next;
28
};
29
 
30
#endif