diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-11-30 17:24:27 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-11-30 17:24:27 +0100 |
commit | ba3f55e57acd354e4dde9751a5e585c2694b3338 (patch) | |
tree | fdf1160bb63e9c931e78d3f154333e8f11616bb1 /tools/libxc/xc_gnttab.c | |
parent | b2de462a06e0ab3e05a2b4bf29c39fc2820a2757 (diff) | |
download | xen-ba3f55e57acd354e4dde9751a5e585c2694b3338.tar.gz xen-ba3f55e57acd354e4dde9751a5e585c2694b3338.tar.bz2 xen-ba3f55e57acd354e4dde9751a5e585c2694b3338.zip |
GNTTABOP_map_grant_ref returns error status and handle as
separate fields. Update callers for new interface. Also
use int16_t as standard error code type on all public
interfaces.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_gnttab.c')
-rw-r--r-- | tools/libxc/xc_gnttab.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/libxc/xc_gnttab.c b/tools/libxc/xc_gnttab.c index 54fb40e6e1..76b7b141c9 100644 --- a/tools/libxc/xc_gnttab.c +++ b/tools/libxc/xc_gnttab.c @@ -42,9 +42,10 @@ do_gnttab_op(int xc_handle, int xc_gnttab_map_grant_ref(int xc_handle, uint64_t host_virt_addr, uint32_t dom, - uint16_t ref, + grant_ref_t ref, uint16_t flags, - int16_t *handle, + int16_t *status, + grant_handle_t *handle, uint64_t *dev_bus_addr) { struct gnttab_map_grant_ref op; @@ -58,6 +59,7 @@ int xc_gnttab_map_grant_ref(int xc_handle, if ( (rc = do_gnttab_op(xc_handle, GNTTABOP_map_grant_ref, &op, 1)) == 0 ) { + *status = op.status; *handle = op.handle; *dev_bus_addr = op.dev_bus_addr; } @@ -69,7 +71,7 @@ int xc_gnttab_map_grant_ref(int xc_handle, int xc_gnttab_unmap_grant_ref(int xc_handle, uint64_t host_virt_addr, uint64_t dev_bus_addr, - uint16_t handle, + grant_handle_t handle, int16_t *status) { struct gnttab_unmap_grant_ref op; |