diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-10-18 16:43:15 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-10-18 16:43:15 +0100 |
commit | 3a200f3c4be9bbbf6078ba0a6e6f1f2a543f5378 (patch) | |
tree | 10ad32a380f19d4c074a3a09c0471c6a0b49a719 /tools/libxc/xc_private.h | |
parent | 53c6e9e545e2202d02f674bd2d8150d62706e23c (diff) | |
download | xen-3a200f3c4be9bbbf6078ba0a6e6f1f2a543f5378.tar.gz xen-3a200f3c4be9bbbf6078ba0a6e6f1f2a543f5378.tar.bz2 xen-3a200f3c4be9bbbf6078ba0a6e6f1f2a543f5378.zip |
libxc: flask: use (un)lock pages rather than open coding m(un)lock.
Allows us to do away with safe_unlock and merge into unlock_pages.
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 | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h index bec3871e19..88f3a72909 100644 --- a/tools/libxc/xc_private.h +++ b/tools/libxc/xc_private.h @@ -106,13 +106,6 @@ void unlock_pages(void *addr, size_t len); int hcall_buf_prep(void **addr, size_t len); void hcall_buf_release(void **addr, size_t len); -static inline void safe_munlock(const void *addr, size_t len) -{ - int saved_errno = errno; - (void)munlock(addr, len); - errno = saved_errno; -} - int do_xen_hypercall(xc_interface *xch, privcmd_hypercall_t *hypercall); static inline int do_xen_version(xc_interface *xch, int cmd, void *dest) |