WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Export Xenbus and EvtChn symbols for use in modules

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Export Xenbus and EvtChn symbols for use in modules
From: "Ross C Mcilroy" <mcilrorc@xxxxxxxxxxxxx>
Date: Tue, 30 Aug 2005 17:29:50 +0100
Cc: rolf.neugebauer@xxxxxxxxx
Delivery-date: Tue, 30 Aug 2005 16:27:52 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWtgAtBIPF3406pQ+q6KlPERGbucA==
Thread-topic: [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@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Export Xenbus and EvtChn symbols for use in modules, Ross C Mcilroy <=