mini-os: Simple xenbus watch support
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
Signed-off-by Jacob Gorm Hansen <[email protected]>
extras/mini-os/include/xenbus.h +3 -0
@@ -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