xen-vtx-unstable
changeset 6467:f509c7303954
This patch export symbols in xenbus that is used by netfront
and blkfront so that vbd and vnif can be made to modules.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
and blkfront so that vbd and vnif can be made to modules.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Tue Aug 30 09:46:33 2005 +0000 (2005-08-30) |
parents | e69cbfee4011 |
children | 1de508b9063b |
files | linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Tue Aug 30 08:47:51 2005 +0000 1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Tue Aug 30 09:46:33 2005 +0000 1.3 @@ -209,6 +209,7 @@ int xenbus_register_device(struct xenbus 1.4 { 1.5 return xenbus_register_driver(drv, &xenbus_frontend); 1.6 } 1.7 +EXPORT_SYMBOL(xenbus_register_device); 1.8 1.9 int xenbus_register_backend(struct xenbus_driver *drv) 1.10 {
2.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c Tue Aug 30 08:47:51 2005 +0000 2.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c Tue Aug 30 09:46:33 2005 +0000 2.3 @@ -246,6 +246,7 @@ void *xenbus_read(const char *dir, const 2.4 { 2.5 return xs_single(XS_READ, join(dir, node), len); 2.6 } 2.7 +EXPORT_SYMBOL(xenbus_read); 2.8 2.9 /* Write the value of a single file. 2.10 * Returns -err on failure. createflags can be 0, O_CREAT, or O_CREAT|O_EXCL. 2.11 @@ -298,6 +299,7 @@ int xenbus_transaction_start(const char 2.12 { 2.13 return xs_error(xs_single(XS_TRANSACTION_START, subtree, NULL)); 2.14 } 2.15 +EXPORT_SYMBOL(xenbus_transaction_start); 2.16 2.17 /* End a transaction. 2.18 * If abandon is true, transaction is discarded instead of committed. 2.19 @@ -312,6 +314,7 @@ int xenbus_transaction_end(int abort) 2.20 strcpy(abortstr, "T"); 2.21 return xs_error(xs_single(XS_TRANSACTION_END, abortstr, NULL)); 2.22 } 2.23 +EXPORT_SYMBOL(xenbus_transaction_end); 2.24 2.25 /* Single read and scanf: returns -errno or num scanned. */ 2.26 int xenbus_scanf(const char *dir, const char *node, const char *fmt, ...) 2.27 @@ -333,6 +336,7 @@ int xenbus_scanf(const char *dir, const 2.28 return -ERANGE; 2.29 return ret; 2.30 } 2.31 +EXPORT_SYMBOL(xenbus_scanf); 2.32 2.33 /* Single printf and write: returns -errno or 0. */ 2.34 int xenbus_printf(const char *dir, const char *node, const char *fmt, ...) 2.35 @@ -348,6 +352,7 @@ int xenbus_printf(const char *dir, const 2.36 BUG_ON(ret > sizeof(printf_buffer)-1); 2.37 return xenbus_write(dir, node, printf_buffer, O_CREAT); 2.38 } 2.39 +EXPORT_SYMBOL(xenbus_printf); 2.40 2.41 /* Report a (negative) errno into the store, with explanation. */ 2.42 void xenbus_dev_error(struct xenbus_device *dev, int err, const char *fmt, ...) 2.43 @@ -369,6 +374,7 @@ void xenbus_dev_error(struct xenbus_devi 2.44 printk("xenbus: failed to write error node for %s (%s)\n", 2.45 dev->nodename, printf_buffer); 2.46 } 2.47 +EXPORT_SYMBOL(xenbus_dev_error); 2.48 2.49 /* Clear any error. */ 2.50 void xenbus_dev_ok(struct xenbus_device *dev) 2.51 @@ -381,6 +387,7 @@ void xenbus_dev_ok(struct xenbus_device 2.52 dev->has_error = 0; 2.53 } 2.54 } 2.55 +EXPORT_SYMBOL(xenbus_dev_ok); 2.56 2.57 /* Takes tuples of names, scanf-style args, and void **, NULL terminated. */ 2.58 int xenbus_gather(const char *dir, ...) 2.59 @@ -410,6 +417,7 @@ int xenbus_gather(const char *dir, ...) 2.60 va_end(ap); 2.61 return ret; 2.62 } 2.63 +EXPORT_SYMBOL(xenbus_gather); 2.64 2.65 static int xs_watch(const char *path, const char *token) 2.66 { 2.67 @@ -482,6 +490,7 @@ int register_xenbus_watch(struct xenbus_ 2.68 list_add(&watch->list, &watches); 2.69 return err; 2.70 } 2.71 +EXPORT_SYMBOL(register_xenbus_watch); 2.72 2.73 void unregister_xenbus_watch(struct xenbus_watch *watch) 2.74 { 2.75 @@ -499,6 +508,7 @@ void unregister_xenbus_watch(struct xenb 2.76 "XENBUS Failed to release watch %s: %i\n", 2.77 watch->node, err); 2.78 } 2.79 +EXPORT_SYMBOL(unregister_xenbus_watch); 2.80 2.81 /* Re-register callbacks to all watches. */ 2.82 void reregister_xenbus_watches(void)