> err = xenbus_scanf("/", "restart_mode", "%s", mode);
This will try to read //restart_mode, not /domain/<DOM>/restart_mode,
which I assume is not what you want.
Also, there is no way to access keys in the /domain/<DOM> directly,
only keys in subfolders. For example, you should be using something
like /domain/<DOM>/control/restart_mode, like this:
err = xenbus_scanf("control", "restart_mode", "%s", mode);
Note the absence of the leading '/' in the directory parameter. This
means the location is relative to the "home directory" of the domain.
> err = xenbus_mkdir("/", "test");
As I understand it, the plan is to remove the xenbus_mkdir() kernel
interface. Directories should be created by the tools. You should
have Xend (or something else) do the creation before the kernel needs
it.
You may want to take a look at the XenBus wiki page some of us have
been working on, which might help:
http://wiki.xensource.com/xenwiki/XenBus
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@xxxxxxxxxx
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|