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-changelog

[Xen-changelog] Add xc_init_store python binding.

# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID ae3a721bbcb87b6ef12c1571ed2580a6614d0475
# Parent  cda48f530e93409b4808b57355e8a1dbd52a29d8
Add xc_init_store python binding.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r cda48f530e93 -r ae3a721bbcb8 tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Wed Jul 27 17:04:47 2005
+++ b/tools/python/xen/lowlevel/xc/xc.c Wed Jul 27 17:06:02 2005
@@ -813,6 +813,22 @@
     return zero;
 }
 
+static PyObject *pyxc_init_store(PyObject *self, PyObject *args,
+                                PyObject *kwds)
+{
+    XcObject *xc = (XcObject *)self;
+
+    int remote_port;
+
+    static char *kwd_list[] = { "remote_port", NULL };
+
+    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "i", kwd_list, 
+                                      &remote_port) )
+        return NULL;
+
+    return PyInt_FromLong(xc_init_store(xc->xc_handle, remote_port));
+}
+
 
 static PyMethodDef pyxc_methods[] = {
     { "handle",
@@ -1088,6 +1104,13 @@
       " mem_kb [long]: .\n"
       "Returns: [int] 0 on success; -1 on error.\n" },
 
+    { "init_store", 
+      (PyCFunction)pyxc_init_store, 
+      METH_VARARGS | METH_KEYWORDS, "\n"
+      "Initialize the store event channel and return the store page mfn.\n"
+      " remote_port [int]: store event channel port number.\n"
+      "Returns: [int] mfn on success; <0 on error.\n" },
+
     { NULL, NULL, 0, NULL }
 };
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Add xc_init_store python binding., Xen patchbot -unstable <=