Linux Kernel
3.7.1
|
#include <linux/interrupt.h>
#include <linux/blkdev.h>
#include <linux/hdreg.h>
#include <linux/cdrom.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/scatterlist.h>
#include <linux/bitmap.h>
#include <xen/xen.h>
#include <xen/xenbus.h>
#include <xen/grant_table.h>
#include <xen/events.h>
#include <xen/page.h>
#include <xen/platform_pci.h>
#include <xen/interface/grant_table.h>
#include <xen/interface/io/blkif.h>
#include <xen/interface/io/protocols.h>
#include <asm/xen/hypervisor.h>
Go to the source code of this file.
Data Structures | |
struct | blk_shadow |
struct | blkfront_info |
Macros | |
#define | BLK_RING_SIZE __CONST_RING_SIZE(blkif, PAGE_SIZE) |
#define | MAXIMUM_OUTSTANDING_BLOCK_REQS (BLKIF_MAX_SEGMENTS_PER_REQUEST * BLK_RING_SIZE) |
#define | GRANT_INVALID_REF 0 |
#define | PARTS_PER_DISK 16 |
#define | PARTS_PER_EXT_DISK 256 |
#define | BLKIF_MAJOR(dev) ((dev)>>8) |
#define | BLKIF_MINOR(dev) ((dev) & 0xff) |
#define | EXT_SHIFT 28 |
#define | EXTENDED (1<<EXT_SHIFT) |
#define | VDEV_IS_EXTENDED(dev) ((dev)&(EXTENDED)) |
#define | BLKIF_MINOR_EXT(dev) ((dev)&(~EXTENDED)) |
#define | EMULATED_HD_DISK_MINOR_OFFSET (0) |
#define | EMULATED_HD_DISK_NAME_OFFSET (EMULATED_HD_DISK_MINOR_OFFSET / 256) |
#define | EMULATED_SD_DISK_MINOR_OFFSET (0) |
#define | EMULATED_SD_DISK_NAME_OFFSET (EMULATED_SD_DISK_MINOR_OFFSET / 256) |
#define | DEV_NAME "xvd" /* name in /dev */ |
Enumerations | |
enum | blkif_state { BLKIF_STATE_DISCONNECTED, BLKIF_STATE_CONNECTED, BLKIF_STATE_SUSPENDED } |
Functions | |
module_init (xlblk_init) | |
module_exit (xlblk_exit) | |
MODULE_DESCRIPTION ("Xen virtual block device frontend") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS_BLOCKDEV_MAJOR (XENVBD_MAJOR) | |
MODULE_ALIAS ("xen:vbd") | |
MODULE_ALIAS ("xenblk") | |
#define BLK_RING_SIZE __CONST_RING_SIZE(blkif, PAGE_SIZE) |
Definition at line 76 of file xen-blkfront.c.
Definition at line 121 of file xen-blkfront.c.
Definition at line 122 of file xen-blkfront.c.
Definition at line 127 of file xen-blkfront.c.
Definition at line 133 of file xen-blkfront.c.
#define EMULATED_HD_DISK_MINOR_OFFSET (0) |
Definition at line 128 of file xen-blkfront.c.
#define EMULATED_HD_DISK_NAME_OFFSET (EMULATED_HD_DISK_MINOR_OFFSET / 256) |
Definition at line 129 of file xen-blkfront.c.
#define EMULATED_SD_DISK_MINOR_OFFSET (0) |
Definition at line 130 of file xen-blkfront.c.
#define EMULATED_SD_DISK_NAME_OFFSET (EMULATED_SD_DISK_MINOR_OFFSET / 256) |
Definition at line 131 of file xen-blkfront.c.
#define EXT_SHIFT 28 |
Definition at line 124 of file xen-blkfront.c.
#define EXTENDED (1<<EXT_SHIFT) |
Definition at line 125 of file xen-blkfront.c.
#define GRANT_INVALID_REF 0 |
Definition at line 116 of file xen-blkfront.c.
#define MAXIMUM_OUTSTANDING_BLOCK_REQS (BLKIF_MAX_SEGMENTS_PER_REQUEST * BLK_RING_SIZE) |
Definition at line 114 of file xen-blkfront.c.
#define PARTS_PER_DISK 16 |
Definition at line 118 of file xen-blkfront.c.
#define PARTS_PER_EXT_DISK 256 |
Definition at line 119 of file xen-blkfront.c.
Definition at line 126 of file xen-blkfront.c.
enum blkif_state |
Definition at line 61 of file xen-blkfront.c.
MODULE_ALIAS | ( | "xen:vbd" | ) |
MODULE_ALIAS | ( | "xenblk" | ) |
MODULE_ALIAS_BLOCKDEV_MAJOR | ( | XENVBD_MAJOR | ) |
module_exit | ( | xlblk_exit | ) |
module_init | ( | xlblk_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |