Home
last modified time | relevance | path

Searched refs:xgs (Results 1 – 7 of 7) sorted by relevance

/xen/tools/libs/gnttab/
A Dgntshr_core.c27 xengntshr_handle *xgs = malloc(sizeof(*xgs)); in xengntshr_open() local
30 if (!xgs) return NULL; in xengntshr_open()
32 xgs->fd = -1; in xengntshr_open()
33 xgs->logger = logger; in xengntshr_open()
36 if (!xgs->logger) { in xengntshr_open()
37 xgs->logger = xgs->logger_tofree = in xengntshr_open()
46 return xgs; in xengntshr_open()
51 free(xgs); in xengntshr_open()
59 if ( !xgs ) in xengntshr_close()
64 free(xgs); in xengntshr_close()
[all …]
A Dfreebsd.c210 int osdep_gntshr_open(xengntshr_handle *xgs) in osdep_gntshr_open() argument
217 xgs->fd = fd; in osdep_gntshr_open()
222 int osdep_gntshr_close(xengntshr_handle *xgs) in osdep_gntshr_close() argument
224 if ( xgs->fd == -1 ) in osdep_gntshr_close()
227 return close(xgs->fd); in osdep_gntshr_close()
230 void *osdep_gntshr_share_pages(xengntshr_handle *xgs, in osdep_gntshr_share_pages() argument
237 int fd = xgs->fd; in osdep_gntshr_share_pages()
253 GSERROR(xgs->logger, "ioctl failed"); in osdep_gntshr_share_pages()
263 GSERROR(xgs->logger, "mmap failed"); in osdep_gntshr_share_pages()
283 GSERROR(xgs->logger, "ioctl SET_UNMAP_NOTIFY failed"); in osdep_gntshr_share_pages()
[all …]
A Dprivate.h51 int osdep_gntshr_open(xengntshr_handle *xgs);
52 int osdep_gntshr_close(xengntshr_handle *xgs);
54 void *osdep_gntshr_share_pages(xengntshr_handle *xgs,
59 int osdep_gntshr_unshare(xengntshr_handle *xgs,
A Dlinux.c427 int osdep_gntshr_open(xengntshr_handle *xgs) in osdep_gntshr_open() argument
432 xgs->fd = fd; in osdep_gntshr_open()
436 int osdep_gntshr_close(xengntshr_handle *xgs) in osdep_gntshr_close() argument
438 if ( xgs->fd == -1 ) in osdep_gntshr_close()
441 return close(xgs->fd); in osdep_gntshr_close()
444 void *osdep_gntshr_share_pages(xengntshr_handle *xgs, in osdep_gntshr_share_pages() argument
453 int fd = xgs->fd; in osdep_gntshr_share_pages()
465 GSERROR(xgs->logger, "ioctl failed"); in osdep_gntshr_share_pages()
474 GSERROR(xgs->logger, "mmap failed"); in osdep_gntshr_share_pages()
491 GSERROR(xgs->logger, "ioctl SET_UNMAP_NOTIFY failed"); in osdep_gntshr_share_pages()
[all …]
A Dgntshr_unimp.c30 int xengntshr_close(xengntshr_handle *xgs) in xengntshr_close() argument
49 int xengntshr_unshare(xengntshr_handle *xgs, void *start_address, uint32_t count) in xengntshr_unshare() argument
/xen/tools/libs/gnttab/include/
A Dxengnttab.h405 int xengntshr_close(xengntshr_handle *xgs);
413 int xengntshr_fd(xengntshr_handle *xgs);
431 void *xengntshr_share_pages(xengntshr_handle *xgs, uint32_t domid,
446 void *xengntshr_share_page_notify(xengntshr_handle *xgs, uint32_t domid,
458 int xengntshr_unshare(xengntshr_handle *xgs, void *start_address, uint32_t count);
/xen/tools/tests/depriv/
A Ddepriv-fd-checker.c169 static xengntshr_handle *xgs; variable
174 xgs = xengntshr_open(logger,0); in setup_gntdev()
175 if (!xgs) trouble("xengntshr_open"); in setup_gntdev()
176 r = xengntshr_share_pages(xgs, 0, 1, &gntshr_gref, 1); in setup_gntdev()

Completed in 75 milliseconds