/* * Common functionality of grant device. * * Copyright (c) 2006-2007, D G Murray. * (c) 2009 Gerd Hoffmann <kraxel@redhat.com> * (c) 2018 Oleksandr Andrushchenko, EPAM Systems Inc.
*/
#ifdef CONFIG_XEN_GRANT_DMA_ALLOC /* * If dmabuf_vaddr is not NULL then this mapping is backed by DMA * capable memory.
*/
struct device *dma_dev; /* Flags used to create this DMA buffer: GNTDEV_DMA_FLAG_XXX. */ int dma_flags; void *dma_vaddr;
dma_addr_t dma_bus_addr; /* Needed to avoid allocation in gnttab_dma_free_pages(). */
xen_pfn_t *frames; #endif
/* Number of live grants */
atomic_t live_grants; /* Needed to avoid allocation in __unmap_grant_pages */ struct gntab_unmap_queue_data unmap_data;
};
struct gntdev_grant_map *gntdev_alloc_map(struct gntdev_priv *priv, int count, int dma_flags);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.