Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
virtio_blk.c File Reference
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/blkdev.h>
#include <linux/hdreg.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/virtio.h>
#include <linux/virtio_blk.h>
#include <linux/scatterlist.h>
#include <linux/string_helpers.h>
#include <scsi/scsi_cmnd.h>
#include <linux/idr.h>

Go to the source code of this file.

Data Structures

struct  virtio_blk
 
struct  virtblk_req
 

Macros

#define PART_BITS   4
 

Enumerations

enum  { VBLK_IS_FLUSH = 1, VBLK_REQ_FLUSH = 2, VBLK_REQ_DATA = 4, VBLK_REQ_FUA = 8 }
 

Functions

 module_param (use_bio, bool, S_IRUGO)
 
 DEVICE_ATTR (serial, S_IRUGO, virtblk_serial_show, NULL)
 
 module_init (init)
 
 module_exit (fini)
 
 MODULE_DEVICE_TABLE (virtio, id_table)
 
 MODULE_DESCRIPTION ("Virtio block driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct workqueue_structvirtblk_wq
 
struct virtio_blk __attribute__
 

Macro Definition Documentation

#define PART_BITS   4

Definition at line 15 of file virtio_blk.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
VBLK_IS_FLUSH 
VBLK_REQ_FLUSH 
VBLK_REQ_DATA 
VBLK_REQ_FUA 

Definition at line 68 of file virtio_blk.c.

Function Documentation

DEVICE_ATTR ( serial  ,
S_IRUGO  ,
virtblk_serial_show  ,
NULL   
)
MODULE_DESCRIPTION ( "Virtio block driver )
MODULE_DEVICE_TABLE ( virtio  ,
id_table   
)
module_exit ( fini  )
module_init ( init  )
MODULE_LICENSE ( "GPL"  )
module_param ( use_bio  ,
bool  ,
S_IRUGO   
)

Variable Documentation

struct workqueue_struct* virtblk_wq

Definition at line 23 of file virtio_blk.c.