Ross C Mcilroy
2005-Aug-30 16:29 UTC
[Xen-devel] [PATCH] Export Xenbus and EvtChn symbols for use in modules
Hi, The below patch exports symbols from xenbus_xs and evtchn so that drivers compiled as modules can use xenbus and event channels. Thanks, Ross -------------------------------------------------------------- Export xenbus and evtchn symbols for use in modules Signed-of-by: Ross McIlroy <mcilrorc@dcs.gla.ac.uk> diff -r f509c7303954 linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c --- a/linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c Tue Aug 30 09:46:33 2005 +++ b/linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c Tue Aug 30 16:48:27 2005 @@ -49,6 +49,8 @@ EXPORT_SYMBOL(evtchn_do_upcall); EXPORT_SYMBOL(bind_evtchn_to_irq); EXPORT_SYMBOL(unbind_evtchn_from_irq); +EXPORT_SYMBOL(bind_evtchn_to_irqhandler); +EXPORT_SYMBOL(unbind_evtchn_from_irqhandler); #endif /* diff -r f509c7303954 linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c Tue Aug 30 09:46:33 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c Tue Aug 30 16:48:27 2005 @@ -37,6 +37,7 @@ #include <linux/slab.h> #include <linux/fcntl.h> #include <linux/kthread.h> +#include <linux/module.h> #include <asm-xen/xenbus.h> #include "xenstored.h" #include "xenbus_comms.h" @@ -571,3 +572,23 @@ return PTR_ERR(watcher); return 0; } + + +/* Export Symbols */ +EXPORT_SYMBOL(xenbus_directory); +EXPORT_SYMBOL(xenbus_read); +EXPORT_SYMBOL(xenbus_write); +EXPORT_SYMBOL(xenbus_mkdir); +EXPORT_SYMBOL(xenbus_exists); +EXPORT_SYMBOL(xenbus_rm); +EXPORT_SYMBOL(xenbus_transaction_start); +EXPORT_SYMBOL(xenbus_transaction_end); +EXPORT_SYMBOL(xenbus_scanf); +EXPORT_SYMBOL(xenbus_printf); +EXPORT_SYMBOL(xenbus_gather); +EXPORT_SYMBOL(xenbus_dev_error); +EXPORT_SYMBOL(xenbus_dev_ok); +EXPORT_SYMBOL(register_xenbus_watch); +EXPORT_SYMBOL(unregister_xenbus_watch); + +EXPORT_SYMBOL(xenbus_lock); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel