Define a user pointer that can access the hypercall buffer data Useful when you only need to access the hypercall buffer data
Signed-off-by: Yang Hongyang <yan...@cn.fujitsu.com> --- tools/libxc/include/xenctrl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc/include/xenctrl.h index 6994c51..12e8c36 100644 --- a/tools/libxc/include/xenctrl.h +++ b/tools/libxc/include/xenctrl.h @@ -296,6 +296,14 @@ typedef struct xc_hypercall_buffer xc_hypercall_buffer_t; } /* + * Define a user pointer that can access the hypercall buffer data + * + * Useful when you only need to access the hypercall buffer data + */ +#define DECLARE_HYPERCALL_BUFFER_USER_POINTER(_type, _name, _hbuf) \ + _type *_name = _hbuf->hbuf; + +/* * Declare the necessary data structure to allow a hypercall buffer * passed as an argument to a function to be used in the normal way. */ -- 1.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel