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] How to use the functions provided by xen?

To: "Han, Weidong" <weidong.han@xxxxxxxxx>, 张琳 <zhanglin_nk@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] How to use the functions provided by xen?
From: "Zhang, Xing Z" <xing.z.zhang@xxxxxxxxx>
Date: Sat, 15 Mar 2008 21:01:02 +0800
Delivery-date: Sat, 15 Mar 2008 06:01:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <08DF4D958216244799FC84F3514D70F00124FFCB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <47DB1F4A.000001.07597@bjapp34> <08DF4D958216244799FC84F3514D70F00124FFCB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciGOPCKeyt24R4JSs2mPq+RfdygRQAR9teAAAa/eMA=
Thread-topic: [Xen-devel] How to use the functions provided by xen?

I think only header file is not enough.

There are two libs: libxenctrl.so.3.0.0 and libxenguest.so.3.0.0 produced by xc_xxxx files. You should link them to your application if you invoked xc_xxxxx funcs.

These libs located at /usr/lib of dom0.

 

Good good study,day day up ! ^_^
-Wing(zhang xin)

OTC,Intel Corporation


From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Han, Weidong
Sent: 2008
315 17:50
To:
张琳; xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] How to use the functions provided by xen?

 

They are declared in tools/libxc/xenctrl.h. In fact, these functions are called in many places. You can search them in source code for reference.

 

Randy (Weidong)

 


From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 张琳
Sent: 2008
315 8:59
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] How to use the functions provided by xen?

Hello~~~

I need to use some functions provided by xen, such as xc_vcpu_getcontext(), xc_map_foreign_ranger() and so on. I have find them in the /libxc/xc_domain.c~~~

But I don't know how to use them in my program.

For example, if I need to use the function named printf(), I have to include the header file <stdio.h>~~~
Now, I want to use these functions provided by xen, which header files do I need to include?

Good luck!

yours:Lin



===============================================
快来和我一起享受TOM免费邮箱吧! 看看除了1.5G,还有什么?

看看女人都在聊什么? 美图尽赏 聊天世界

明星金曲免费送(http://mm.tom.com/ivr/)周杰伦 林俊杰 庞龙 张惠妹

劲爆歌曲尽情点(http://mm.tom.com/ivr/)霍元甲 吉祥三宝 人质 曹操

炫酷彩铃免费送(http://mm.tom.com/cailing/)周杰伦帮你接电话 麻烦女朋友 七里香 小城故事
===============================================

 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>