[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-devel] xenstore -- read UUID
Hi All,
Im trying to read the UUID of a domain-U from domain-0 using the following code from inside say xen/common/memory.c.
The include file <xs.h> is present both in /usr/include and tools/xenstore/xs.h
#include <xs.h> static int get_domain_uuid(unsigned int domain_id) { struct xs_handle *xs; xs_transaction_t t; char *path; unsigned int *len; void *uuid; xs = xs_daemon_open(); if (xs == NULL) return 1; path = xs_get_domain_path(xs, domain_id); if (path == NULL) return 1; strcat (path, '/uuid'); len = strlen(path) + 1; uuid = xs_read(xs, t, path, len); printf('%lx \n', (char) (*uuid)); xs_daemon_close(xs); free(path); return 0; }
when compiled throws an error ( xs.h - no such file or directory).
How to access xenstore and read the doamin UUID from dom-0 specifically from inside xen/common/memory.c?
regards, Dinesh C
Voice your opinion on the burning issues of the day. Discuss, debate with the world. Logon to message boards on MSN. Try it!
|
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|