Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
blkback.c File Reference
#include <linux/spinlock.h>
#include <linux/kthread.h>
#include <linux/list.h>
#include <linux/delay.h>
#include <linux/freezer.h>
#include <xen/events.h>
#include <xen/page.h>
#include <xen/xen.h>
#include <asm/xen/hypervisor.h>
#include <asm/xen/hypercall.h>
#include "common.h"

Go to the source code of this file.

Data Structures

struct  pending_req
 
struct  xen_blkbk
 
struct  seg_buf
 

Macros

#define BLKBACK_INVALID_HANDLE   (~0)
 
#define pending_page(req, seg)   pending_pages[vaddr_pagenr(req, seg)]
 
#define pending_handle(_req, _seg)   (blkbk->pending_grant_handles[vaddr_pagenr(_req, _seg)])
 

Functions

 module_param_named (reqs, xen_blkif_reqs, int, 0)
 
 MODULE_PARM_DESC (reqs,"Number of blkback requests to allocate")
 
 module_param (log_stats, int, 0644)
 
irqreturn_t xen_blkif_be_int (int irq, void *dev_id)
 
int xen_blkif_schedule (void *arg)
 
 module_init (xen_blkif_init)
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 MODULE_ALIAS ("xen-backend:vbd")
 

Macro Definition Documentation

#define BLKBACK_INVALID_HANDLE   (~0)

Definition at line 84 of file blkback.c.

#define pending_handle (   _req,
  _seg 
)    (blkbk->pending_grant_handles[vaddr_pagenr(_req, _seg)])

Definition at line 121 of file blkback.c.

#define pending_page (   req,
  seg 
)    pending_pages[vaddr_pagenr(req, seg)]

Definition at line 113 of file blkback.c.

Function Documentation

MODULE_ALIAS ( "xen-backend:vbd"  )
module_init ( xen_blkif_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )
module_param ( log_stats  ,
int  ,
0644   
)
module_param_named ( reqs  ,
xen_blkif_reqs  ,
int  ,
 
)
MODULE_PARM_DESC ( reqs  ,
"Number of blkback requests to allocate"   
)
irqreturn_t xen_blkif_be_int ( int  irq,
void dev_id 
)

Definition at line 250 of file blkback.c.

int xen_blkif_schedule ( void arg)

Definition at line 274 of file blkback.c.