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

Re: [Xen-devel] hvmloader/xenbus.c: How to modify or add a key-value pai

To: Bei Guan <gbtju85@xxxxxxxxx>
Subject: Re: [Xen-devel] hvmloader/xenbus.c: How to modify or add a key-value pair in xenstore
From: Tim Deegan <tim@xxxxxxx>
Date: Mon, 15 Aug 2011 10:43:47 +0100
Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Mon, 15 Aug 2011 02:44:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAEQjb-RKsd0zPrb7g20CgZ3YWogerWQY0u96rKDRwMMAbUDKrQ@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CAEQjb-RKsd0zPrb7g20CgZ3YWogerWQY0u96rKDRwMMAbUDKrQ@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
Hi, 

At 13:22 +0800 on 13 Aug (1313241740), Bei Guan wrote:
> In hvmloader/xenbus.c, a simple implementation of xenbus, the function
> xenbus_send() (see the prototype below) can be used to read a value from
> xenstore.
> static int xenbus_send(uint32_t type, uint32_t len, const char *data,
> uint32_t *reply_len, const char **reply_data)
> 
> Now, I want to modify a key-value existed in xenstore or add a new key-value
> pair into xenstore, so I write a new function xenbus_write_send(), which is
> changed from xenbus_send().

I think you should make a xenbus_write() function based on
xenbus_read(), rather than duplicating all of xenbus_send(). 

Tim.

-- 
Tim Deegan <tim@xxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

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