13#ifndef __XEN_GNTTAB_H__
14#define __XEN_GNTTAB_H__
19#include <xen/public/grant_table.h>
int gnttab_end_access(grant_ref_t gref)
Release a grant reference created by gnttab_grant_access().
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.
grant_ref_t gnttab_grant_access(domid_t domid, unsigned long gfn, bool readonly)
Grant another domain access to a guest frame.
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.
int32_t gnttab_alloc_and_grant(void **map, bool readonly)
Allocate a page and immediately grant access to it.
__INT32_TYPE__ int32_t
Definition stdint.h:74
__INT16_TYPE__ int16_t
Definition stdint.h:73