search for: ringbuf_head

Displaying 3 results from an estimated 3 matches for "ringbuf_head".

2005 Aug 04
0
[PATCH 5/11] Fix bug where watch messages didn''t go out to domains, causing them to get stuck.
...; !conn->domain) return true; } diff -r d4ab9ac93104 -r ba5d5bd28edf tools/xenstore/xs_test.c --- a/tools/xenstore/xs_test.c Thu Aug 4 10:34:26 2005 +++ b/tools/xenstore/xs_test.c Thu Aug 4 10:43:03 2005 @@ -80,6 +80,14 @@ return buf + h->read; } +static int output_avail(struct ringbuf_head *out) +{ + unsigned int avail; + + get_output_chunk(out, out->buf, &avail); + return avail != 0; +} + static void update_output_chunk(struct ringbuf_head *h, uint32_t len) { h->write += len; @@ -99,10 +107,12 @@ void *data, unsigned int len) { unsigned int avail; + int was_f...
2005 Sep 08
45
/proc/xen/xenbus supports watch?
Hi, Anybody (Christian?) could please tell me if we can get the support for registering watch with /proc/xen/xenbus? (..OK, I know that we will change it this /proc stuff to a device soon) So far we can only do read/write/rm. I really miss the xen watch feature. Many thanks, Hieu _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com
2005 Aug 04
0
[PATCH 6/11] Xenstore watch rework
...#include <sys/types.h> +#include <sys/wait.h> #include <sys/stat.h> #include <fcntl.h> #include <signal.h> @@ -33,6 +34,9 @@ #define XSTEST static struct xs_handle *handles[10] = { NULL }; + +static bool timeout = true; +static bool readonly = false; struct ringbuf_head { @@ -184,7 +188,7 @@ " getperm <path>\n" " setperm <path> <id> <flags> ...\n" " shutdown\n" - " watch <path> <token> <prio>\n" + " watch <path> <token>\n"...