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

[Xen-devel] [ Help! ] how is ctx->xch in xen/tools/libxl/xl_cmdimpl.c initialized?


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Li Yechen <lccycc123@xxxxxxxxx>
  • Date: Thu, 11 Apr 2013 21:06:58 +0800
  • Delivery-date: Thu, 11 Apr 2013 18:11:07 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

I try to trap the xl command:Âmain_memset() in tools/libxl/xl.h
and it goes toÂdo_xen_hypercall(xch, *hypercall) on line 246, xen4.1.2/tools/libxc/xc_private.c

this function then call:Âxch->ops->u.privcmd.hypercall() which is a function pointer
the xch is a member of global varible: libxl_ctx *ctx, which is in line66ï tools/libxl/xl_cmdimpl.c

then I can't find where the function pointer goes to, nor does the place where this function pointer is initialized.
Any one is familiar with this variable? Help me please! Thank you very much!

--
Yechen Li

Team of System Virtualization and Cloud ComputingÂ
School of Electronic Engineering and Computer Science

Peking University, China

Nothing is impossible because impossible itself Âsays: " I'm possible "
lccycc From PKU
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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