Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
xenbus.c File Reference
#include <stdarg.h>
#include <linux/module.h>
#include <linux/kthread.h>
#include <xen/events.h>
#include <xen/grant_table.h>
#include "common.h"

Go to the source code of this file.

Data Structures

struct  backend_info
 

Macros

#define VBD_SHOW(name, format, args...)
 

Functions

struct xenbus_devicexen_blkbk_xenbus (struct backend_info *be)
 
int __init xen_blkif_interface_init (void)
 
 VBD_SHOW (oo_req,"%d\n", be->blkif->st_oo_req)
 
 VBD_SHOW (rd_req,"%d\n", be->blkif->st_rd_req)
 
 VBD_SHOW (wr_req,"%d\n", be->blkif->st_wr_req)
 
 VBD_SHOW (f_req,"%d\n", be->blkif->st_f_req)
 
 VBD_SHOW (ds_req,"%d\n", be->blkif->st_ds_req)
 
 VBD_SHOW (rd_sect,"%d\n", be->blkif->st_rd_sect)
 
 VBD_SHOW (wr_sect,"%d\n", be->blkif->st_wr_sect)
 
 VBD_SHOW (physical_device,"%x:%x\n", be->major, be->minor)
 
 VBD_SHOW (mode,"%s\n", be->mode)
 
int xen_blkbk_flush_diskcache (struct xenbus_transaction xbt, struct backend_info *be, int state)
 
int xen_blkbk_barrier (struct xenbus_transaction xbt, struct backend_info *be, int state)
 
int xen_blkif_xenbus_init (void)
 

Macro Definition Documentation

#define VBD_SHOW (   name,
  format,
  args... 
)
Value:
static ssize_t show_##name(struct device *_dev, \
char *buf) \
{ \
struct xenbus_device *dev = to_xenbus_device(_dev); \
\
return sprintf(buf, format, ##args); \
} \
static DEVICE_ATTR(name, S_IRUGO, show_##name, NULL)

Definition at line 220 of file xenbus.c.

Function Documentation

VBD_SHOW ( oo_req  ,
"%d\n"  ,
be->blkif->  st_oo_req 
)
VBD_SHOW ( rd_req  ,
"%d\n"  ,
be->blkif->  st_rd_req 
)
VBD_SHOW ( wr_req  ,
"%d\n"  ,
be->blkif->  st_wr_req 
)
VBD_SHOW ( f_req  ,
"%d\n"  ,
be->blkif->  st_f_req 
)
VBD_SHOW ( ds_req  ,
"%d\n"  ,
be->blkif->  st_ds_req 
)
VBD_SHOW ( rd_sect  ,
"%d\n"  ,
be->blkif->  st_rd_sect 
)
VBD_SHOW ( wr_sect  ,
"%d\n"  ,
be->blkif->  st_wr_sect 
)
VBD_SHOW ( physical_device  ,
"%x:%x\n ,
be->  major,
be->  minor 
)
VBD_SHOW ( mode  ,
"%s\n"  ,
be->  mode 
)
int xen_blkbk_barrier ( struct xenbus_transaction  xbt,
struct backend_info be,
int  state 
)

Definition at line 427 of file xenbus.c.

int xen_blkbk_flush_diskcache ( struct xenbus_transaction  xbt,
struct backend_info be,
int  state 
)

Definition at line 374 of file xenbus.c.

struct xenbus_device* xen_blkbk_xenbus ( struct backend_info be)
read

Definition at line 39 of file xenbus.c.

int __init xen_blkif_interface_init ( void  )

Definition at line 205 of file xenbus.c.

int xen_blkif_xenbus_init ( void  )

Definition at line 783 of file xenbus.c.