Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sd.c File Reference
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/bio.h>
#include <linux/genhd.h>
#include <linux/hdreg.h>
#include <linux/errno.h>
#include <linux/idr.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/blkdev.h>
#include <linux/blkpg.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/string_helpers.h>
#include <linux/async.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <asm/uaccess.h>
#include <asm/unaligned.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_dbg.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_driver.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsicam.h>
#include "sd.h"
#include "scsi_priv.h"
#include "scsi_logging.h"

Go to the source code of this file.

Macros

#define SD_MINORS   16
 
#define RC16_LEN   32
 
#define READ_CAPACITY_RETRIES_ON_RESET   10
 

Functions

 MODULE_AUTHOR ("Eric Youngdale")
 
 MODULE_DESCRIPTION ("SCSI disk (sd) driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK0_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK1_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK2_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK3_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK4_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK5_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK6_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK7_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK8_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK9_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK10_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK11_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK12_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK13_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK14_MAJOR)
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (SCSI_DISK15_MAJOR)
 
 MODULE_ALIAS_SCSI_DEVICE (TYPE_DISK)
 
 MODULE_ALIAS_SCSI_DEVICE (TYPE_MOD)
 
 MODULE_ALIAS_SCSI_DEVICE (TYPE_RBC)
 
 module_init (init_sd)
 
 module_exit (exit_sd)
 

Macro Definition Documentation

#define RC16_LEN   32

Definition at line 1909 of file sd.c.

#define READ_CAPACITY_RETRIES_ON_RESET   10

Definition at line 1914 of file sd.c.

#define SD_MINORS   16

Definition at line 96 of file sd.c.

Function Documentation

MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK0_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK1_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK2_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK3_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK4_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK5_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK6_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK7_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK8_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK9_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK10_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK11_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK12_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK13_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK14_MAJOR  )
MODULE_ALIAS_BLOCKDEV_MAJOR ( SCSI_DISK15_MAJOR  )
MODULE_ALIAS_SCSI_DEVICE ( TYPE_DISK  )
MODULE_ALIAS_SCSI_DEVICE ( TYPE_MOD  )
MODULE_ALIAS_SCSI_DEVICE ( TYPE_RBC  )
MODULE_AUTHOR ( "Eric Youngdale"  )
MODULE_DESCRIPTION ( "SCSI disk (sd) driver )
module_exit ( exit_sd  )
module_init ( init_sd  )
MODULE_LICENSE ( "GPL"  )