/* * The umem_mutex protects the page_list field of an ODP * umem, allowing only a single thread to map/unmap pages. The mutex * also protects access to the mmu notifier counters.
*/ struct mutex umem_mutex; void *private; /* for the HW driver to use. */
int npages;
/* * An implicit odp umem cannot be DMA mapped, has 0 length, and serves * only as an anchor for the driver to hold onto the per_mm. FIXME: * This should be removed and drivers should work with the per_mm * directly.
*/ bool is_implicit_odp;
/* Returns the first page of an ODP umem. */ staticinlineunsignedlong ib_umem_start(struct ib_umem_odp *umem_odp)
{ return umem_odp->notifier.interval_tree.start;
}
/* Returns the address of the page after the last one of an ODP umem. */ staticinlineunsignedlong ib_umem_end(struct ib_umem_odp *umem_odp)
{ return umem_odp->notifier.interval_tree.last + 1;
}
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.