From: Dan Smith Subject: Re: problem using xenbus interface Date: Mon, 08 Aug 2005 06:39:19 -0700 Message-ID: References: <5d7aca9505080805267dce691b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <5d7aca9505080805267dce691b@mail.gmail.com> (nahieu@gmail.com's message of "Mon, 8 Aug 2005 21:26:02 +0900") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: NAHieu Cc: "List: Xen Developers" List-Id: xen-devel@lists.xenproject.org > err = xenbus_scanf("/", "restart_mode", "%s", mode); This will try to read //restart_mode, not /domain//restart_mode, which I assume is not what you want. Also, there is no way to access keys in the /domain/ directly, only keys in subfolders. For example, you should be using something like /domain//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@us.ibm.com