search for: ioctl_gntdev_map_grant_ref

Displaying 2 results from an estimated 2 matches for "ioctl_gntdev_map_grant_ref".

2007 Mar 19
0
[PATCH 2/3] [RFC] User-space grant table device - changes to libxc
...} + + return fd; +} + +int xc_gnttab_close(int xcg_handle) +{ + return close(xcg_handle); +} + +void *xc_gnttab_map_grant_ref(int xcg_handle, + uint32_t domid, + uint32_t ref, + int prot) +{ + struct ioctl_gntdev_map_grant_ref map; + struct ioctl_gntdev_grant_ref op; + void *addr; + + op.domid = domid; + op.ref = ref; + map.count = 1; + map.refs = &op; + + if (ioctl(xcg_handle, IOCTL_GNTDEV_MAP_GRANT_REF, &map)) { + return NULL; + } + + addr = mmap(NULL, PAGE_SIZE, prot, MAP_SHAR...
2007 Mar 28
2
[PATCH 2/3] User-space grant table device - main driver
A character device for accessing (in user-space) pages that have been granted by other domains. Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel