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

RE: [Xen-devel] where is the location of definition of "do_xen_version"?


  • To: <fanghaifeng@xxxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Zheng, Shaohui" <shaohui.zheng@xxxxxxxxx>
  • Date: Fri, 7 Mar 2008 17:55:54 +0800
  • Delivery-date: Fri, 07 Mar 2008 02:04:12 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AciAOE/khiOlE1VPTXqkg67dDLvRWgAALY6Q
  • Thread-topic: [Xen-devel] where is the location of definition of "do_xen_version"?

tools/libxc/xc_private.h
the start line  is 88.
88 static inline int do_xen_version(int xc_handle, int cmd, void *dest)
 89 {
 90     DECLARE_HYPERCALL;
 91
 92     hypercall.op     = __HYPERVISOR_xen_version;
 93     hypercall.arg[0] = (unsigned long) cmd;
 94     hypercall.arg[1] = (unsigned long) dest;
 95
 96     return do_xen_hypercall(xc_handle, &hypercall);
 97 }

Ctags can help you find the definition a function.
Just run the following commands.
cd xen-src-dir
ctags -R
vim -t do_xen_version

then you got it.

--
Best Regards
Shaohui
________________________________________
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of ææå
Sent: 2008å3æ7æ 17:46
To: xen-devel
Subject: [Xen-devel] where is the location of definition of "do_xen_version"?

hi, my friends:
Â
Currently, i am studying theÂway of hypercall's implementation.
i have already known the flow of hypercall's execuation, and i decided to add a 
new hypercall into the Xen.
first, i want to know the detail of one hypercall function, for example, 
"do_xen_version", but i can not find
the location of definition of "do_xen_version". who can help me?
Â
i have get some resualts as follows:
Â
[root@vt-0Âxen-3.1.0-src]#ÂfindÂ./Â-nameÂ"*.*"Â|ÂxargsÂgrepÂ"do_xen_version"
./xen/include/xen/hypercall.h:do_xen_version(
BinaryÂfileÂ./xen/common/built_in.oÂmatches
BinaryÂfileÂ./xen/common/kernel.oÂmatches
./xen/arch/x86/x86_32/entry.S:ÂÂÂÂÂÂÂÂ.longÂdo_xen_version
./xen/arch/x86/x86_32/entry.S:ÂÂÂÂÂÂÂÂ.byteÂ2Â/*Âdo_xen_versionÂÂÂÂÂÂÂ*/
BinaryÂfileÂ./xen/arch/x86/x86_32/built_in.oÂmatches
BinaryÂfileÂ./xen/arch/x86/x86_32/entry.oÂmatches
./xen/arch/x86/x86_64/entry.S:ÂÂÂÂÂÂÂÂ.quadÂdo_xen_version
./xen/arch/x86/x86_64/entry.S:ÂÂÂÂÂÂÂÂ.byteÂ2Â/*Âdo_xen_versionÂÂÂÂÂÂÂ*/
BinaryÂfileÂ./xen/arch/x86/built_in.oÂmatches
BinaryÂfileÂ./xen/arch/x86/hvm/hvm.oÂmatches
BinaryÂfileÂ./xen/arch/x86/hvm/built_in.oÂmatches
./xen/arch/ia64/linux-xen/entry.S:ÂÂÂÂÂÂdata8Âdo_xen_version
./xen/arch/powerpc/powerpc64/hypercall_table.S:ÂÂÂÂÂÂÂÂ.quadÂdo_xen_version
BinaryÂfileÂ./dist/install/boot/xen-syms-3.1.0Âmatches
./tools/libxc/xc_private.c:ÂÂÂÂrcÂ=Âdo_xen_version(xc_handle,Âcmd,Âarg);
./tools/libxc/xc_private.h:staticÂinlineÂintÂdo_xen_version(intÂxc_handle,ÂintÂ
cmd,ÂvoidÂ*dest)
Â
but the "do_xen_version" is not in those above.
Â
thanks a lots.
Â
www.ict.ac.cn
2008-03-07 
________________________________________
ææå 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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