Displaying 2 results from an estimated 2 matches for "ioctl_gntdev_get_offset_for_vaddr".
2007 Mar 19
0
[PATCH 2/3] [RFC] User-space grant table device - changes to libxc
...L, PAGE_SIZE * count, prot, MAP_SHARED, xcg_handle,
+ map.index);
+ if (addr == MAP_FAILED) {
+ return NULL;
+ }
+
+ return addr;
+}
+
+int xc_gnttab_munmap(int xcg_handle,
+ void *start_address,
+ uint32_t count)
+{
+ struct ioctl_gntdev_get_offset_for_vaddr get_offset;
+ struct ioctl_gntdev_unmap_grant_ref unmap_grant;
+ int rc;
+
+ /* First, it is necessary to get the offset which was initially
used to
+ * mmap() the pages.
+ */
+ get_offset.vaddr = start_address;
+ if ((rc = ioctl(xcg_handle, IOCTL_GNTDEV_GET_OFFSET_FOR_VADD...
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