Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
scsi_ioctl.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/capability.h>
#include <linux/completion.h>
#include <linux/cdrom.h>
#include <linux/ratelimit.h>
#include <linux/slab.h>
#include <linux/times.h>
#include <asm/uaccess.h>
#include <scsi/scsi.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/sg.h>

Go to the source code of this file.

Data Structures

struct  blk_cmd_filter
 

Macros

#define OMAX_SB_LEN   16 /* For backward compatibility */
 

Functions

 EXPORT_SYMBOL (scsi_command_size_tbl)
 
int blk_verify_command (unsigned char *cmd, fmode_t has_write_perm)
 
 EXPORT_SYMBOL (blk_verify_command)
 
int sg_scsi_ioctl (struct request_queue *q, struct gendisk *disk, fmode_t mode, struct scsi_ioctl_command __user *sic)
 
 EXPORT_SYMBOL_GPL (sg_scsi_ioctl)
 
int scsi_cmd_ioctl (struct request_queue *q, struct gendisk *bd_disk, fmode_t mode, unsigned int cmd, void __user *arg)
 
 EXPORT_SYMBOL (scsi_cmd_ioctl)
 
int scsi_verify_blk_ioctl (struct block_device *bd, unsigned int cmd)
 
 EXPORT_SYMBOL (scsi_verify_blk_ioctl)
 
int scsi_cmd_blk_ioctl (struct block_device *bd, fmode_t mode, unsigned int cmd, void __user *arg)
 
 EXPORT_SYMBOL (scsi_cmd_blk_ioctl)
 
 fs_initcall (blk_scsi_ioctl_init)
 

Variables

const unsigned char scsi_command_size_tbl [8]
 

Macro Definition Documentation

#define OMAX_SB_LEN   16 /* For backward compatibility */

Definition at line 428 of file scsi_ioctl.c.

Function Documentation

int blk_verify_command ( unsigned char cmd,
fmode_t  has_write_perm 
)

Definition at line 199 of file scsi_ioctl.c.

EXPORT_SYMBOL ( scsi_command_size_tbl  )
EXPORT_SYMBOL ( blk_verify_command  )
EXPORT_SYMBOL ( scsi_cmd_ioctl  )
EXPORT_SYMBOL ( scsi_verify_blk_ioctl  )
EXPORT_SYMBOL ( scsi_cmd_blk_ioctl  )
EXPORT_SYMBOL_GPL ( sg_scsi_ioctl  )
fs_initcall ( blk_scsi_ioctl_init  )
int scsi_cmd_blk_ioctl ( struct block_device bd,
fmode_t  mode,
unsigned int  cmd,
void __user arg 
)

Definition at line 735 of file scsi_ioctl.c.

int scsi_cmd_ioctl ( struct request_queue q,
struct gendisk *  bd_disk,
fmode_t  mode,
unsigned int  cmd,
void __user arg 
)

Definition at line 564 of file scsi_ioctl.c.

int scsi_verify_blk_ioctl ( struct block_device bd,
unsigned int  cmd 
)

Definition at line 694 of file scsi_ioctl.c.

int sg_scsi_ioctl ( struct request_queue q,
struct gendisk *  disk,
fmode_t  mode,
struct scsi_ioctl_command __user sic 
)

Definition at line 429 of file scsi_ioctl.c.

Variable Documentation

const unsigned char scsi_command_size_tbl[8]
Initial value:
=
{
6, 10, 10, 12,
16, 12, 10, 10
}

Definition at line 44 of file scsi_ioctl.c.