Skip to contentSkip to conversation

mini-os: Simple xenbus watch support

PATCH New Jacob Gorm Hansen 1 participant 1 message Jan 4, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mini-os: Simple xenbus watch support

The attached patch adds support for simple waiting for a watched key to change to a certain value. This patch is necessary for the netfront driver (separate patch).

regards,
Jacob

extras/mini-os/include/xenbus.h +3 -0
diff -r 52ae8dd4bc75 extras/mini-os/include/xenbus.h
@@ -11,6 +11,9 @@ void init_xenbus(void);
    string on failure and sets *value to NULL.  On success, *value is
    set to a malloc'd copy of the value. */
 char *xenbus_read(xenbus_transaction_t xbt, const char *path, char **value);
+
+char *xenbus_watch_path(xenbus_transaction_t xbt, const char *path);
+char* xenbus_wait_for_value(const char*,const char*);
 
 /* Associates a value with a path.  Returns a malloc'd error string on
    failure. */
extras/mini-os/xenbus/xenbus.c +78 -8

115 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel