ioctl32.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #ifndef IOCTL32_H
  2. #define IOCTL32_H 1
  3. struct file;
  4. int sys_ioctl(unsigned int, unsigned int, unsigned long);
  5. /* 
  6.  * Register an 32bit ioctl translation handler for ioctl cmd.
  7.  *
  8.  * handler == NULL: use 64bit ioctl handler.
  9.  * arguments to handler:  fd: file descriptor
  10.  *                        cmd: ioctl command.
  11.  *                        arg: ioctl argument
  12.  *                        struct file *file: file descriptor pointer.
  13.  */ 
  14. extern int register_ioctl32_conversion(unsigned int cmd, int (*handler)(unsigned int, unsigned int, unsigned long, struct file *));
  15. extern int unregister_ioctl32_conversion(unsigned int cmd);
  16. #endif