Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Xen grant table helpers. More...

#include <stdbool.h>
#include <stdint.h>
#include <zephyr/xen/public/grant_table.h>

Go to the source code of this file.

Functions

grant_ref_t gnttab_grant_access (domid_t domid, unsigned long gfn, bool readonly)
 Grant another domain access to a guest frame.
int gnttab_end_access (grant_ref_t gref)
 Release a grant reference created by gnttab_grant_access().
int32_t gnttab_alloc_and_grant (void **map, bool readonly)
 Allocate a page and immediately grant access to it.
void * gnttab_get_pages (unsigned int npages)
 Allocate pages that can host grant mappings.
int gnttab_put_pages (void *start_addr, unsigned int npages)
 Release pages allocated by gnttab_get_pages().
int gnttab_map_refs (struct gnttab_map_grant_ref *map_ops, unsigned int count)
 Map one or more foreign grant references.
int gnttab_unmap_refs (struct gnttab_unmap_grant_ref *unmap_ops, unsigned int count)
 Unmap one or more foreign grant references.
const char * gnttabop_error (int16_t status)
 Convert a Xen grant-table status into readable text.

Detailed Description

Xen grant table helpers.