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
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
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: [email protected] [mailto:[email protected]] On Behalf Of 张琳
Sent: 2008年3月15日 8:59
To: [email protected]
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://bjcgi.163.net/cgi-bin/newreg.cgi?rf=050602>
<http://vip.tom.com/info/ggd_060301/index_tmail.html> 看看女人都在聊什么? <http://bbs.lady.tom.com/bbs.php?forumid=703> 美图尽赏 <http://pic.tom.com/> 聊天世界 <http://bbs.news.tom.com/bbs.php?forumid=697>
明星金曲免费送(http://mm.tom.com/ivr/):周杰伦 <http://fs.tom.com/ivr/search_ivrring.php?SingerName=周杰伦&user_id=3&code_id=000000> 林俊杰 <http://fs.tom.com/ivr/search_ivrring.php?SingerName=林俊杰&user_id=3&code_id=000000> 庞龙 <http://fs.tom.com/ivr/search_ivrring.php?SingerName=庞龙&user_id=3&code_id=000000> 张惠妹 <http://fs.tom.com/ivr/search_ivrring.php?SingerName=张惠妹&user_id=3&code_id=000000>
劲爆歌曲尽情点(http://mm.tom.com/ivr/):霍元甲 <http://fs.tom.com/ivr/send_step1.php?Id=39244&user_id=3&code_id=w555> 吉祥三宝 <http://fs.tom.com/ivr/send_step1.php?Id=38397&user_id=3&code_id=w555> 人质 <http://fs.tom.com/ivr/send_step1.php?Id=39335&user_id=3&code_id=w555> 曹操 <http://fs.tom.com/ivr/send_step1.php?Id=39325&user_id=3&code_id=w555>
炫酷彩铃免费送(http://mm.tom.com/cailing/):周杰伦帮你接电话 <http://fs.tom.com/cailing/search.php?CurPage=1&user_id=3&Catalog=&phone_num=&SearchBy=ring&Keyword=%D6%DC%BD%DC%C2%D7%B0%EF%C4%E3%BD%D3%B5%E7%BB%B0> 麻烦女朋友 <http://fs.tom.com/cailing/search.php?CurPage=1&user_id=3&Catalog=&phone_num=&SearchBy=ring&Keyword=%C2%E9%B7%B3%C5%AE%C5%F3%D3%D1> 七里香 <http://fs.tom.com/cailing/search.php?CurPage=1&user_id=3&Catalog=&phone_num=&SearchBy=ring&Keyword=%C6%DF%C0%EF%CF%E3> 小城故事 <http://fs.tom.com/cailing/search.php?CurPage=1&user_id=3&Catalog=&phone_num=&SearchBy=ring&Keyword=%D0%A1%B3%C7%B9%CA%CA%C2>
===============================================
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
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: [email protected] [mailto:[email protected]] On Behalf Of Han, Weidong
Sent: 2008年3月15日 17:50
To: 张琳; [email protected]
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: [email protected] [mailto:[email protected]] On Behalf Of 张琳
Sent: 2008年3月15日 8:59
To: [email protected]
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://bjcgi.163.net/cgi-bin/newreg.cgi?rf=050602>
<http://vip.tom.com/info/ggd_060301/index_tmail.html> 看看女人都在聊什么? <http://bbs.lady.tom.com/bbs.php?forumid=703> 美图尽赏 <http://pic.tom.com/> 聊天世界 <http://bbs.news.tom.com/bbs.php?forumid=697>
明星金曲免费送(http://mm.tom.com/ivr/):周杰伦 <http://fs.tom.com/ivr/search_ivrring.php?SingerName=周杰伦&user_id=3&code_id=000000> 林俊杰 <http://fs.tom.com/ivr/search_ivrring.php?SingerName=林俊杰&user_id=3&code_id=000000> 庞龙 <http://fs.tom.com/ivr/search_ivrring.php?SingerName=庞龙&user_id=3&code_id=000000> 张惠妹 <http://fs.tom.com/ivr/search_ivrring.php?SingerName=张惠妹&user_id=3&code_id=000000>
劲爆歌曲尽情点(http://mm.tom.com/ivr/):霍元甲 <http://fs.tom.com/ivr/send_step1.php?Id=39244&user_id=3&code_id=w555> 吉祥三宝 <http://fs.tom.com/ivr/send_step1.php?Id=38397&user_id=3&code_id=w555> 人质 <http://fs.tom.com/ivr/send_step1.php?Id=39335&user_id=3&code_id=w555> 曹操 <http://fs.tom.com/ivr/send_step1.php?Id=39325&user_id=3&code_id=w555>
炫酷彩铃免费送(http://mm.tom.com/cailing/):周杰伦帮你接电话 <http://fs.tom.com/cailing/search.php?CurPage=1&user_id=3&Catalog=&phone_num=&SearchBy=ring&Keyword=%D6%DC%BD%DC%C2%D7%B0%EF%C4%E3%BD%D3%B5%E7%BB%B0> 麻烦女朋友 <http://fs.tom.com/cailing/search.php?CurPage=1&user_id=3&Catalog=&phone_num=&SearchBy=ring&Keyword=%C2%E9%B7%B3%C5%AE%C5%F3%D3%D1> 七里香 <http://fs.tom.com/cailing/search.php?CurPage=1&user_id=3&Catalog=&phone_num=&SearchBy=ring&Keyword=%C6%DF%C0%EF%CF%E3> 小城故事 <http://fs.tom.com/cailing/search.php?CurPage=1&user_id=3&Catalog=&phone_num=&SearchBy=ring&Keyword=%D0%A1%B3%C7%B9%CA%CA%C2>
===============================================
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel