Searched refs:xgs (Results 1 – 7 of 7) sorted by relevance
/xen/tools/libs/gnttab/ |
A D | gntshr_core.c | 27 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 D | freebsd.c | 210 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 D | private.h | 51 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 D | linux.c | 427 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 D | gntshr_unimp.c | 30 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 D | xengnttab.h | 405 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 D | depriv-fd-checker.c | 169 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