Go to the documentation of this file.
37 #include <linux/device.h>
40 #include <linux/export.h>
43 #include <linux/slab.h>
59 const char **vec,
unsigned int len);
102 #define DEFINE_XENBUS_DRIVER(var, drvname, methods...) \
103 struct xenbus_driver var ## _driver = { \
104 .driver.name = drvname + 0 ?: var ## _ids->devicetype, \
105 .driver.owner = THIS_MODULE, \
106 .ids = var ## _ids, ## methods \
125 #define XBT_NIL ((struct xenbus_transaction) { 0 })
128 const char *dir,
const char *
node,
unsigned int *num);
130 const char *dir,
const char *
node,
unsigned int *len);
132 const char *dir,
const char *
node,
const char *
string);
134 const char *dir,
const char *
node);
136 const char *dir,
const char *
node);
177 #define XENBUS_IS_ERR_READ(str) ({ \
178 if (!IS_ERR(str) && strlen(str) == 0) { \
180 str = ERR_PTR(-ERANGE); \
185 #define XENBUS_EXIST_ERR(err) ((err) == -ENOENT || (err) == -ERANGE)
190 const char **,
unsigned int));
194 const char **,
unsigned int),
200 int gnt_ref,
void **
vaddr);