Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
compat_ioctl.c File Reference
#include <linux/joystick.h>
#include <linux/types.h>
#include <linux/compat.h>
#include <linux/kernel.h>
#include <linux/capability.h>
#include <linux/compiler.h>
#include <linux/sched.h>
#include <linux/smp.h>
#include <linux/ioctl.h>
#include <linux/if.h>
#include <linux/if_bridge.h>
#include <linux/raid/md_u.h>
#include <linux/kd.h>
#include <linux/route.h>
#include <linux/in6.h>
#include <linux/ipv6_route.h>
#include <linux/skbuff.h>
#include <linux/netlink.h>
#include <linux/vt.h>
#include <linux/falloc.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/ppp_defs.h>
#include <linux/ppp-ioctl.h>
#include <linux/if_pppox.h>
#include <linux/mtio.h>
#include <linux/auto_fs.h>
#include <linux/auto_fs4.h>
#include <linux/tty.h>
#include <linux/vt_kern.h>
#include <linux/fb.h>
#include <linux/videodev2.h>
#include <linux/netdevice.h>
#include <linux/raw.h>
#include <linux/blkdev.h>
#include <linux/elevator.h>
#include <linux/rtc.h>
#include <linux/pci.h>
#include <linux/serial.h>
#include <linux/if_tun.h>
#include <linux/ctype.h>
#include <linux/syscalls.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
#include <linux/atalk.h>
#include <linux/gfp.h>
#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci.h>
#include <net/bluetooth/rfcomm.h>
#include <linux/capi.h>
#include <linux/gigaset_dev.h>
#include <asm/uaccess.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/if_bonding.h>
#include <linux/watchdog.h>
#include <linux/soundcard.h>
#include <linux/lp.h>
#include <linux/ppdev.h>
#include <linux/atm.h>
#include <linux/atmarp.h>
#include <linux/atmclip.h>
#include <linux/atmdev.h>
#include <linux/atmioc.h>
#include <linux/atmlec.h>
#include <linux/atmmpc.h>
#include <linux/atmsvc.h>
#include <linux/atm_tcp.h>
#include <linux/sonet.h>
#include <linux/atm_suni.h>
#include <linux/usb.h>
#include <linux/usbdevice_fs.h>
#include <linux/nbd.h>
#include <linux/random.h>
#include <linux/filter.h>
#include <linux/hiddev.h>
#include <linux/dvb/audio.h>
#include <linux/dvb/dmx.h>
#include <linux/dvb/frontend.h>
#include <linux/dvb/video.h>
#include <linux/sort.h>

Go to the source code of this file.

Data Structures

struct  compat_video_event
 
struct  compat_video_still_picture
 
struct  compat_video_spu_palette
 
struct  sock_fprog32
 
struct  ppp_option_data32
 
struct  ppp_idle32
 
struct  serial_struct32
 
struct  i2c_msg32
 
struct  i2c_rdwr_ioctl_data32
 
struct  i2c_smbus_ioctl_data32
 
struct  i2c_rdwr_aligned
 

Macros

#define __DVB_CORE__
 
#define PPPIOCSPASS32   _IOW('t', 71, struct sock_fprog32)
 
#define PPPIOCSACTIVE32   _IOW('t', 70, struct sock_fprog32)
 
#define PPPIOCSCOMPRESS32   _IOW('t', 77, struct ppp_option_data32)
 
#define PPPIOCGIDLE32   _IOR('t', 63, struct ppp_idle32)
 
#define HCIUARTSETPROTO   _IOW('U', 200, int)
 
#define HCIUARTGETPROTO   _IOR('U', 201, int)
 
#define HCIUARTGETDEVICE   _IOR('U', 202, int)
 
#define HCIUARTSETFLAGS   _IOW('U', 203, int)
 
#define HCIUARTGETFLAGS   _IOR('U', 204, int)
 
#define BNEPCONNADD   _IOW('B', 200, int)
 
#define BNEPCONNDEL   _IOW('B', 201, int)
 
#define BNEPGETCONNLIST   _IOR('B', 210, int)
 
#define BNEPGETCONNINFO   _IOR('B', 211, int)
 
#define CMTPCONNADD   _IOW('C', 200, int)
 
#define CMTPCONNDEL   _IOW('C', 201, int)
 
#define CMTPGETCONNLIST   _IOR('C', 210, int)
 
#define CMTPGETCONNINFO   _IOR('C', 211, int)
 
#define HIDPCONNADD   _IOW('H', 200, int)
 
#define HIDPCONNDEL   _IOW('H', 201, int)
 
#define HIDPGETCONNLIST   _IOR('H', 210, int)
 
#define HIDPGETCONNINFO   _IOR('H', 211, int)
 
#define RTC_IRQP_READ32   _IOR('p', 0x0b, compat_ulong_t)
 
#define RTC_IRQP_SET32   _IOW('p', 0x0c, compat_ulong_t)
 
#define RTC_EPOCH_READ32   _IOR('p', 0x0d, compat_ulong_t)
 
#define RTC_EPOCH_SET32   _IOW('p', 0x0e, compat_ulong_t)
 
#define XFORM(i)   (((i) ^ ((i) << 27) ^ ((i) << 17)) & 0xffffffff)
 
#define COMPATIBLE_IOCTL(cmd)   XFORM(cmd),
 
#define IGNORE_IOCTL(cmd)   COMPATIBLE_IOCTL(cmd)
 
#define VFAT_IOCTL_READDIR_BOTH32   _IOR('r', 1, struct compat_dirent[2])
 
#define VFAT_IOCTL_READDIR_SHORT32   _IOR('r', 2, struct compat_dirent[2])
 

Functions

asmlinkage long compat_sys_ioctl (unsigned int fd, unsigned int cmd, unsigned long arg)
 
 __initcall (init_sys32_ioctl)
 

Macro Definition Documentation

#define __DVB_CORE__

Definition at line 107 of file compat_ioctl.c.

#define BNEPCONNADD   _IOW('B', 200, int)

Definition at line 570 of file compat_ioctl.c.

#define BNEPCONNDEL   _IOW('B', 201, int)

Definition at line 571 of file compat_ioctl.c.

#define BNEPGETCONNINFO   _IOR('B', 211, int)

Definition at line 573 of file compat_ioctl.c.

#define BNEPGETCONNLIST   _IOR('B', 210, int)

Definition at line 572 of file compat_ioctl.c.

#define CMTPCONNADD   _IOW('C', 200, int)

Definition at line 575 of file compat_ioctl.c.

#define CMTPCONNDEL   _IOW('C', 201, int)

Definition at line 576 of file compat_ioctl.c.

#define CMTPGETCONNINFO   _IOR('C', 211, int)

Definition at line 578 of file compat_ioctl.c.

#define CMTPGETCONNLIST   _IOR('C', 210, int)

Definition at line 577 of file compat_ioctl.c.

#define COMPATIBLE_IOCTL (   cmd)    XFORM(cmd),

Definition at line 814 of file compat_ioctl.c.

#define HCIUARTGETDEVICE   _IOR('U', 202, int)

Definition at line 566 of file compat_ioctl.c.

#define HCIUARTGETFLAGS   _IOR('U', 204, int)

Definition at line 568 of file compat_ioctl.c.

#define HCIUARTGETPROTO   _IOR('U', 201, int)

Definition at line 565 of file compat_ioctl.c.

#define HCIUARTSETFLAGS   _IOW('U', 203, int)

Definition at line 567 of file compat_ioctl.c.

#define HCIUARTSETPROTO   _IOW('U', 200, int)

Definition at line 564 of file compat_ioctl.c.

#define HIDPCONNADD   _IOW('H', 200, int)

Definition at line 580 of file compat_ioctl.c.

#define HIDPCONNDEL   _IOW('H', 201, int)

Definition at line 581 of file compat_ioctl.c.

#define HIDPGETCONNINFO   _IOR('H', 211, int)

Definition at line 583 of file compat_ioctl.c.

#define HIDPGETCONNLIST   _IOR('H', 210, int)

Definition at line 582 of file compat_ioctl.c.

#define IGNORE_IOCTL (   cmd)    COMPATIBLE_IOCTL(cmd)

Definition at line 822 of file compat_ioctl.c.

#define PPPIOCGIDLE32   _IOR('t', 63, struct ppp_idle32)

Definition at line 453 of file compat_ioctl.c.

#define PPPIOCSACTIVE32   _IOW('t', 70, struct sock_fprog32)

Definition at line 414 of file compat_ioctl.c.

#define PPPIOCSCOMPRESS32   _IOW('t', 77, struct ppp_option_data32)

Definition at line 447 of file compat_ioctl.c.

#define PPPIOCSPASS32   _IOW('t', 71, struct sock_fprog32)

Definition at line 413 of file compat_ioctl.c.

#define RTC_EPOCH_READ32   _IOR('p', 0x0d, compat_ulong_t)

Definition at line 742 of file compat_ioctl.c.

#define RTC_EPOCH_SET32   _IOW('p', 0x0e, compat_ulong_t)

Definition at line 743 of file compat_ioctl.c.

#define RTC_IRQP_READ32   _IOR('p', 0x0b, compat_ulong_t)

Definition at line 740 of file compat_ioctl.c.

#define RTC_IRQP_SET32   _IOW('p', 0x0c, compat_ulong_t)

Definition at line 741 of file compat_ioctl.c.

#define VFAT_IOCTL_READDIR_BOTH32   _IOR('r', 1, struct compat_dirent[2])
#define VFAT_IOCTL_READDIR_SHORT32   _IOR('r', 2, struct compat_dirent[2])
#define XFORM (   i)    (((i) ^ ((i) << 27) ^ ((i) << 17)) & 0xffffffff)

Definition at line 812 of file compat_ioctl.c.

Function Documentation

__initcall ( init_sys32_ioctl  )
asmlinkage long compat_sys_ioctl ( unsigned int  fd,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 1541 of file compat_ioctl.c.