Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
bsg.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/file.h>
#include <linux/blkdev.h>
#include <linux/poll.h>
#include <linux/cdev.h>
#include <linux/jiffies.h>
#include <linux/percpu.h>
#include <linux/uio.h>
#include <linux/idr.h>
#include <linux/bsg.h>
#include <linux/slab.h>
#include <scsi/scsi.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_driver.h>
#include <scsi/sg.h>

Go to the source code of this file.

Data Structures

struct  bsg_device
 
struct  bsg_command
 

Macros

#define BSG_DESCRIPTION   "Block layer SCSI generic (bsg) driver"
 
#define BSG_VERSION   "0.4"
 
#define BSG_DEFAULT_CMDS   64
 
#define BSG_MAX_DEVS   32768
 
#define dprintk(fmt, args...)
 
#define BSG_LIST_ARRAY_SIZE   8
 

Enumerations

enum  { BSG_F_BLOCK = 1 }
 

Functions

void bsg_unregister_queue (struct request_queue *q)
 
 EXPORT_SYMBOL_GPL (bsg_unregister_queue)
 
int bsg_register_queue (struct request_queue *q, struct device *parent, const char *name, void(*release)(struct device *))
 
 EXPORT_SYMBOL_GPL (bsg_register_queue)
 
 MODULE_AUTHOR ("Jens Axboe")
 
 MODULE_DESCRIPTION (BSG_DESCRIPTION)
 
 MODULE_LICENSE ("GPL")
 
 device_initcall (bsg_init)
 

Macro Definition Documentation

#define BSG_DEFAULT_CMDS   64

Definition at line 55 of file bsg.c.

#define BSG_DESCRIPTION   "Block layer SCSI generic (bsg) driver"

Definition at line 32 of file bsg.c.

#define BSG_LIST_ARRAY_SIZE   8

Definition at line 69 of file bsg.c.

#define BSG_MAX_DEVS   32768

Definition at line 56 of file bsg.c.

#define BSG_VERSION   "0.4"

Definition at line 33 of file bsg.c.

#define dprintk (   fmt,
  args... 
)

Definition at line 63 of file bsg.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
BSG_F_BLOCK 

Definition at line 51 of file bsg.c.

Function Documentation

int bsg_register_queue ( struct request_queue q,
struct device parent,
const char name,
void(*)(struct device *)  release 
)

Definition at line 995 of file bsg.c.

void bsg_unregister_queue ( struct request_queue q)

Definition at line 977 of file bsg.c.

device_initcall ( bsg_init  )
EXPORT_SYMBOL_GPL ( bsg_unregister_queue  )
EXPORT_SYMBOL_GPL ( bsg_register_queue  )
MODULE_AUTHOR ( "Jens Axboe"  )
MODULE_DESCRIPTION ( BSG_DESCRIPTION  )
MODULE_LICENSE ( "GPL"  )