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/blkdev.h>
#include <linux/blkpg.h>
#include <linux/blktrace_api.h>
#include <linux/cdrom.h>
#include <linux/compat.h>
#include <linux/elevator.h>
#include <linux/fd.h>
#include <linux/hdreg.h>
#include <linux/slab.h>
#include <linux/syscalls.h>
#include <linux/types.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Data Structures

struct  compat_hd_geometry
 
struct  compat_cdrom_read_audio
 
struct  compat_cdrom_generic_command
 
struct  compat_blkpg_ioctl_arg
 
struct  compat_floppy_drive_params
 
struct  compat_floppy_drive_struct
 
struct  compat_floppy_fdc_state
 
struct  compat_floppy_write_errors
 

Macros

#define BLKBSZGET_32   _IOR(0x12, 112, int)
 
#define BLKBSZSET_32   _IOW(0x12, 113, int)
 
#define BLKGETSIZE64_32   _IOR(0x12, 114, int)
 
#define FDSETPRM32   _IOW(2, 0x42, struct compat_floppy_struct)
 
#define FDDEFPRM32   _IOW(2, 0x43, struct compat_floppy_struct)
 
#define FDSETDRVPRM32   _IOW(2, 0x90, struct compat_floppy_drive_params)
 
#define FDGETDRVPRM32   _IOR(2, 0x11, struct compat_floppy_drive_params)
 
#define FDGETDRVSTAT32   _IOR(2, 0x12, struct compat_floppy_drive_struct)
 
#define FDPOLLDRVSTAT32   _IOR(2, 0x13, struct compat_floppy_drive_struct)
 
#define FDGETFDCSTAT32   _IOR(2, 0x15, struct compat_floppy_fdc_state)
 
#define FDWERRORGET32   _IOR(2, 0x17, struct compat_floppy_write_errors)
 
#define NR_FD_IOCTL_TRANS   ARRAY_SIZE(fd_ioctl_trans_table)
 

Functions

long compat_blkdev_ioctl (struct file *file, unsigned cmd, unsigned long arg)
 

Macro Definition Documentation

#define BLKBSZGET_32   _IOR(0x12, 112, int)

Definition at line 207 of file compat_ioctl.c.

#define BLKBSZSET_32   _IOW(0x12, 113, int)

Definition at line 208 of file compat_ioctl.c.

#define BLKGETSIZE64_32   _IOR(0x12, 114, int)

Definition at line 209 of file compat_ioctl.c.

#define FDDEFPRM32   _IOW(2, 0x43, struct compat_floppy_struct)

Definition at line 277 of file compat_ioctl.c.

#define FDGETDRVPRM32   _IOR(2, 0x11, struct compat_floppy_drive_params)

Definition at line 279 of file compat_ioctl.c.

#define FDGETDRVSTAT32   _IOR(2, 0x12, struct compat_floppy_drive_struct)

Definition at line 280 of file compat_ioctl.c.

#define FDGETFDCSTAT32   _IOR(2, 0x15, struct compat_floppy_fdc_state)

Definition at line 282 of file compat_ioctl.c.

#define FDPOLLDRVSTAT32   _IOR(2, 0x13, struct compat_floppy_drive_struct)

Definition at line 281 of file compat_ioctl.c.

#define FDSETDRVPRM32   _IOW(2, 0x90, struct compat_floppy_drive_params)

Definition at line 278 of file compat_ioctl.c.

#define FDSETPRM32   _IOW(2, 0x42, struct compat_floppy_struct)

Definition at line 276 of file compat_ioctl.c.

#define FDWERRORGET32   _IOR(2, 0x17, struct compat_floppy_write_errors)

Definition at line 283 of file compat_ioctl.c.

#define NR_FD_IOCTL_TRANS   ARRAY_SIZE(fd_ioctl_trans_table)

Definition at line 300 of file compat_ioctl.c.

Function Documentation

long compat_blkdev_ioctl ( struct file file,
unsigned  cmd,
unsigned long  arg 
)

Definition at line 656 of file compat_ioctl.c.

Variable Documentation

unsigned int cmd

Definition at line 287 of file compat_ioctl.c.

unsigned int cmd32

Definition at line 286 of file compat_ioctl.c.