summaryrefslogtreecommitdiffstats
path: root/sys/xen/gnttab.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/xen/gnttab.h')
-rw-r--r--sys/xen/gnttab.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/xen/gnttab.h b/sys/xen/gnttab.h
index 8348af5..1741ec3 100644
--- a/sys/xen/gnttab.h
+++ b/sys/xen/gnttab.h
@@ -43,6 +43,8 @@
#include <machine/xen/xen-os.h>
#include <xen/features.h>
+#define GNTTAB_LIST_END GRANT_REF_INVALID
+
struct gnttab_free_callback {
struct gnttab_free_callback *next;
void (*fn)(void *);
@@ -74,6 +76,13 @@ int gnttab_end_foreign_access_ref(grant_ref_t ref);
*/
void gnttab_end_foreign_access(grant_ref_t ref, void *page);
+/*
+ * Eventually end access through the given array of grant references.
+ * Access will be ended immediately iff the grant entry is not in use,
+ * otherwise it will happen some time later
+ */
+void gnttab_end_foreign_access_references(u_int count, grant_ref_t *refs);
+
int gnttab_grant_foreign_transfer(domid_t domid, unsigned long pfn, grant_ref_t *result);
unsigned long gnttab_end_foreign_transfer_ref(grant_ref_t ref);
OpenPOWER on IntegriCloud