search for: grant_combo

Displaying 1 result from an estimated 1 matches for "grant_combo".

2006 Aug 11
2
[PATCH][XEN] Use a union to pack the dual-short combos in an endian neutral way.
...ant_table.c Fri Aug 11 12:29:48 2006 -0400 @@ -32,6 +32,17 @@ #include <xen/guest_access.h> #include <acm/acm_hooks.h> +/* The first to members of a grant entry are updated as a combined + * pair. The following union allows that to happen in an endian + * neutral fashion. */ +union grant_combo { + uint32_t word; + struct { + uint16_t flags; + domid_t domid; + } shorts; +}; + #define PIN_FAIL(_lbl, _rc, _f, _a...) \ do { \ DPRINTK( _f, ## _a ); \ @@ -177,7 +188,7 @@ __gnttab_map_grant_...