All of lore.kernel.org
 help / color / mirror / Atom feed
* [ Help! ] how is ctx->xch in xen/tools/libxl/xl_cmdimpl.c initialized?
@ 2013-04-11 13:06 Li Yechen
  2013-04-11 18:41 ` Wei Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Li Yechen @ 2013-04-11 13:06 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 801 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2202 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-23 17:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 13:06 [ Help! ] how is ctx->xch in xen/tools/libxl/xl_cmdimpl.c initialized? Li Yechen
2013-04-11 18:41 ` Wei Liu
2013-04-16 15:17   ` Li Yechen
2013-04-16 15:31     ` Wei Liu
2013-04-23 17:23     ` Dario Faggioli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.