[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Question regarding suspend in libxc
Hi all, int helper_stub_suspend(void *user) { unsigned char *buf = 0; int len = 0, allocd = 0; for (;;) { uint16_t_put(buf, &len, 3 /* suspend */); if (buf) break; buf = helper_allocbuf(len, user); assert(buf); allocd = len; len = 0; } assert(len == allocd); helper_transmitmsg(buf, len, user); int r = helper_getreply(user); return r; } helper_transmitmsg in the above writes the 'buf' to file descriptor 1 (i.e., /dev/tty1). _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |