Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
xenbus_probe.c File Reference
#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/fcntl.h>
#include <linux/mm.h>
#include <linux/proc_fs.h>
#include <linux/notifier.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/xen/hypervisor.h>
#include <xen/xen.h>
#include <xen/xenbus.h>
#include <xen/events.h>
#include <xen/page.h>
#include <xen/hvm.h>
#include "xenbus_comms.h"
#include "xenbus_probe.h"

Go to the source code of this file.

Data Structures

struct  xb_find_info
 

Macros

#define DPRINTK(fmt, args...)
 

Enumerations

enum  xenstore_init { UNKNOWN, PV, HVM, LOCAL }
 

Functions

 EXPORT_SYMBOL_GPL (xen_store_evtchn)
 
 EXPORT_SYMBOL_GPL (xen_store_interface)
 
int xenbus_match (struct device *_dev, struct device_driver *_drv)
 
 EXPORT_SYMBOL_GPL (xenbus_match)
 
int xenbus_read_otherend_details (struct xenbus_device *xendev, char *id_node, char *path_node)
 
 EXPORT_SYMBOL_GPL (xenbus_read_otherend_details)
 
void xenbus_otherend_changed (struct xenbus_watch *watch, const char **vec, unsigned int len, int ignore_on_shutdown)
 
 EXPORT_SYMBOL_GPL (xenbus_otherend_changed)
 
int xenbus_dev_probe (struct device *_dev)
 
 EXPORT_SYMBOL_GPL (xenbus_dev_probe)
 
int xenbus_dev_remove (struct device *_dev)
 
 EXPORT_SYMBOL_GPL (xenbus_dev_remove)
 
void xenbus_dev_shutdown (struct device *_dev)
 
 EXPORT_SYMBOL_GPL (xenbus_dev_shutdown)
 
int xenbus_register_driver_common (struct xenbus_driver *drv, struct xen_bus_type *bus)
 
 EXPORT_SYMBOL_GPL (xenbus_register_driver_common)
 
void xenbus_unregister_driver (struct xenbus_driver *drv)
 
 EXPORT_SYMBOL_GPL (xenbus_unregister_driver)
 
 EXPORT_SYMBOL_GPL (xenbus_dev_attrs)
 
int xenbus_probe_node (struct xen_bus_type *bus, const char *type, const char *nodename)
 
 EXPORT_SYMBOL_GPL (xenbus_probe_node)
 
int xenbus_probe_devices (struct xen_bus_type *bus)
 
 EXPORT_SYMBOL_GPL (xenbus_probe_devices)
 
void xenbus_dev_changed (const char *node, struct xen_bus_type *bus)
 
 EXPORT_SYMBOL_GPL (xenbus_dev_changed)
 
int xenbus_dev_suspend (struct device *dev)
 
 EXPORT_SYMBOL_GPL (xenbus_dev_suspend)
 
int xenbus_dev_resume (struct device *dev)
 
 EXPORT_SYMBOL_GPL (xenbus_dev_resume)
 
int xenbus_dev_cancel (struct device *dev)
 
 EXPORT_SYMBOL_GPL (xenbus_dev_cancel)
 
int register_xenstore_notifier (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (register_xenstore_notifier)
 
void unregister_xenstore_notifier (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (unregister_xenstore_notifier)
 
void xenbus_probe (struct work_struct *unused)
 
 EXPORT_SYMBOL_GPL (xenbus_probe)
 
 device_initcall (xenbus_probe_initcall)
 
 postcore_initcall (xenbus_init)
 
 MODULE_LICENSE ("GPL")
 

Variables

int xen_store_evtchn
 
struct xenstore_domain_interfacexen_store_interface
 
struct device_attribute xenbus_dev_attrs []
 
int xenstored_ready
 

Macro Definition Documentation

#define DPRINTK (   fmt,
  args... 
)
Value:
pr_debug("xenbus_probe (%s:%d) " fmt ".\n", \
__func__, __LINE__, ##args)

Definition at line 33 of file xenbus_probe.c.

Enumeration Type Documentation

Enumerator:
UNKNOWN 
PV 
HVM 
LOCAL 

Definition at line 722 of file xenbus_probe.c.

Function Documentation

device_initcall ( xenbus_probe_initcall  )
EXPORT_SYMBOL_GPL ( xen_store_evtchn  )
EXPORT_SYMBOL_GPL ( xen_store_interface  )
EXPORT_SYMBOL_GPL ( xenbus_match  )
EXPORT_SYMBOL_GPL ( xenbus_read_otherend_details  )
EXPORT_SYMBOL_GPL ( xenbus_otherend_changed  )
EXPORT_SYMBOL_GPL ( xenbus_dev_probe  )
EXPORT_SYMBOL_GPL ( xenbus_dev_remove  )
EXPORT_SYMBOL_GPL ( xenbus_dev_shutdown  )
EXPORT_SYMBOL_GPL ( xenbus_register_driver_common  )
EXPORT_SYMBOL_GPL ( xenbus_unregister_driver  )
EXPORT_SYMBOL_GPL ( xenbus_dev_attrs  )
EXPORT_SYMBOL_GPL ( xenbus_probe_node  )
EXPORT_SYMBOL_GPL ( xenbus_probe_devices  )
EXPORT_SYMBOL_GPL ( xenbus_dev_changed  )
EXPORT_SYMBOL_GPL ( xenbus_dev_suspend  )
EXPORT_SYMBOL_GPL ( xenbus_dev_resume  )
EXPORT_SYMBOL_GPL ( xenbus_dev_cancel  )
EXPORT_SYMBOL_GPL ( register_xenstore_notifier  )
EXPORT_SYMBOL_GPL ( unregister_xenstore_notifier  )
EXPORT_SYMBOL_GPL ( xenbus_probe  )
MODULE_LICENSE ( "GPL"  )
postcore_initcall ( xenbus_init  )
int register_xenstore_notifier ( struct notifier_block nb)

Definition at line 641 of file xenbus_probe.c.

void unregister_xenstore_notifier ( struct notifier_block nb)

Definition at line 654 of file xenbus_probe.c.

int xenbus_dev_cancel ( struct device dev)

Definition at line 629 of file xenbus_probe.c.

void xenbus_dev_changed ( const char node,
struct xen_bus_type bus 
)

Definition at line 526 of file xenbus_probe.c.

int xenbus_dev_probe ( struct device _dev)

Definition at line 206 of file xenbus_probe.c.

int xenbus_dev_remove ( struct device _dev)

Definition at line 252 of file xenbus_probe.c.

int xenbus_dev_resume ( struct device dev)

Definition at line 585 of file xenbus_probe.c.

void xenbus_dev_shutdown ( struct device _dev)

Definition at line 271 of file xenbus_probe.c.

int xenbus_dev_suspend ( struct device dev)

Definition at line 564 of file xenbus_probe.c.

int xenbus_match ( struct device _dev,
struct device_driver _drv 
)

Definition at line 87 of file xenbus_probe.c.

void xenbus_otherend_changed ( struct xenbus_watch watch,
const char **  vec,
unsigned int  len,
int  ignore_on_shutdown 
)

Definition at line 166 of file xenbus_probe.c.

void xenbus_probe ( struct work_struct unused)

Definition at line 660 of file xenbus_probe.c.

int xenbus_probe_devices ( struct xen_bus_type bus)

Definition at line 482 of file xenbus_probe.c.

int xenbus_probe_node ( struct xen_bus_type bus,
const char type,
const char nodename 
)

Definition at line 404 of file xenbus_probe.c.

int xenbus_read_otherend_details ( struct xenbus_device xendev,
char id_node,
char path_node 
)

Definition at line 139 of file xenbus_probe.c.

int xenbus_register_driver_common ( struct xenbus_driver drv,
struct xen_bus_type bus 
)

Definition at line 294 of file xenbus_probe.c.

void xenbus_unregister_driver ( struct xenbus_driver drv)

Definition at line 303 of file xenbus_probe.c.

Variable Documentation

int xen_store_evtchn

Definition at line 66 of file xenbus_probe.c.

struct xenstore_domain_interface* xen_store_interface

Definition at line 69 of file xenbus_probe.c.

struct device_attribute xenbus_dev_attrs[]
Initial value:
= {
__ATTR_RO(nodename),
__ATTR_RO(devtype),
__ATTR_RO(modalias),
}

Definition at line 396 of file xenbus_probe.c.

int xenstored_ready

Definition at line 638 of file xenbus_probe.c.