diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-10-18 17:35:59 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-10-18 17:35:59 +0100 |
commit | 35e135f116d77823e960671db82ca667f125d617 (patch) | |
tree | 991c3aa7f22952398f8f9799e9432e888e2ca9ec /tools/libxc/xc_private.h | |
parent | 932b3645d2c3d0d105c2dc0a3a8191bad606c48f (diff) | |
download | xen-35e135f116d77823e960671db82ca667f125d617.tar.gz xen-35e135f116d77823e960671db82ca667f125d617.tar.bz2 xen-35e135f116d77823e960671db82ca667f125d617.zip |
libxc: make xc_memory_op library private
Now that all XENMEM_* callers go via an op specific function make
xc_memory_op private to libxc (and rename to do_memory_op for
consistency with other private functions).
Also change the interface to take a size parameter so that
do_memory_op knows how much memory to lock for the top-level argument,
removing some of the introspection.
[ Compatibility note: this breaks qemu-xen before 706bc8c588cb ]
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_private.h')
-rw-r--r-- | tools/libxc/xc_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h index d2a3b6eef1..e08936f633 100644 --- a/tools/libxc/xc_private.h +++ b/tools/libxc/xc_private.h @@ -206,6 +206,8 @@ static inline int do_sysctl(xc_interface *xch, struct xen_sysctl *sysctl) return ret; } +int do_memory_op(xc_interface *xch, int cmd, void *arg, size_t len); + int xc_interface_open_core(xc_interface *xch); /* returns fd, logs errors */ int xc_interface_close_core(xc_interface *xch, int fd); /* no logging */ |