WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] problem using xenbus interface

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] problem using xenbus interface
From: NAHieu <nahieu@xxxxxxxxx>
Date: Mon, 8 Aug 2005 21:26:02 +0900
Delivery-date: Mon, 08 Aug 2005 12:24:22 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=mGts9LmZMIi03hyR/N+gRC8nna6xIrVSorDTvZDdo4e7N1thE+PD9AV0oTwm1HblXwER1821U3o+fCKvfaqYMgnMEHv43B7omqORMxSY6y/LaABMb8YVMHkBr2U0IV2gdwq/89GdQDCZcrbtRtrlzcob7u/6Pmj7yi/rG6ve0Xw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello,

I a writing a small kernel module for domU, in which I use xenbus and
have some problems:

I use xenbus_scanf to read value of "/restart_mode", but the below
code always failed (got non-zero err)

err = xenbus_scanf("/", "restart_mode", "%s", mode);


Another code like below also failed (I try to make a new node
"/domain/<DOM>/test" with xenbus_mkdir):

err = xenbus_mkdir("/", "test");


I am using the latest xen pulled from -unstable repository. I guess
the problem is I didnt use xenbus interface properly (?) Anybody could
give me some helps?

Thank you a lot,
NAH

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel