[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.