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] Xen Store API in userspace

To: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
Subject: Re: [Xen-devel] Xen Store API in userspace
From: Artur Baruchi <mail.baruchi@xxxxxxxxx>
Date: Tue, 17 Mar 2009 16:04:53 -0300
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 17 Mar 2009 12:05:24 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=NAGEFrZ3I0cincq2ROw24JPluPJlDlFvIfd+mwHDcEA=; b=wrbB1OlYqUzkRXaPxWhyQg9Xwwx/ZYQl2L+D5dCFUt4QZmIvcvZNtLv3279WXm/faZ tH4AgAK86jUT4RowYxrWjoLEhV9kXg5oLDH2ljCEtcEGOTqZDQEYJ2ucwAcN4YJfXRLK /2HuhNjtgDhONHO7l+rDsthSnaHzUY646Q6PU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=A5k2/Bh3CWi7qRJ4py8Y4PzhyuC7E9qjrBEfVPqxWNPQmiP5mrt13b1cLt/9rZqSN2 e2QGyneezC4Zx65nxc5/33gGMGmoqosuyxEqs4tnFekL8eWLOuWvYzYrDVAu/HJv925g WzYujIj2JF/g8d3ISIgRAxC2X/aPJRIRqy//Q=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49BEF2D6.6040609@xxxxxxxxxx>
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: <e3977d9c0903161547i2fd2f73eu6b93df11952742b9@xxxxxxxxxxxxxx> <49BEF2D6.6040609@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi.

I used the xs.h but when tring to compile it, I got the follow error messages:

get_info.c:(.text+0x9): undefined reference to `xs_daemon_open'
get_info.c:(.text+0x5a): undefined reference to `xs_write'
get_info.c:(.text+0x63): undefined reference to `xs_daemon_close'
collect2: ld returned 1 exit status


The command to compile is:
gcc -Wall get_info.c -o get_info.o

Part of the code:
#include <xs.h>
...
struct xs_handle *xsh;
xsh = xs_daemon_open();
...
xs_write (xsh, XBT_NULL, "testing", mem, strlen(mem));
xs_daemon_close(xsh);


I dont think its a problem in my code, but it is in my libs or the way
that Im tring to compile it.


Thanks in advance.

Att.
Artur Baruchi



On Mon, Mar 16, 2009 at 9:46 PM, Zhigang Wang <zhigang.x.wang@xxxxxxxxxx> wrote:
> Artur Baruchi wrote:
>> Hi Guys,
>>
>> Is possible to use functions like xenbus_printf in user space? If
>> yes.. which libraries do I should use ?
>
> xen-unstable/tools/xenstore/xs.h
>
> use this lib.
>
> zhigang
>
>>
>> Thanks in advance.
>>
>> Att.
>> Artur Baruchi
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>
>

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

<Prev in Thread] Current Thread [Next in Thread>