/** * struct ioptdesc - Memory descriptor for IOMMU page tables * @iopt_freelist_elm: List element for a struct iommu_pages_list * * This struct overlays struct page for now. Do not modify without a good * understanding of the issues.
*/ struct ioptdesc { unsignedlong __page_flags;
/** * iommu_pages_list_add - add the page to a iommu_pages_list * @list: List to add the page to * @virt: Address returned from iommu_alloc_pages_node_sz()
*/ staticinlinevoid iommu_pages_list_add(struct iommu_pages_list *list, void *virt)
{
list_add_tail(&virt_to_ioptdesc(virt)->iopt_freelist_elm, &list->pages);
}
/** * iommu_pages_list_splice - Put all the pages in list from into list to * @from: Source list of pages * @to: Destination list of pages * * from must be re-initialized after calling this function if it is to be * used again.
*/ staticinlinevoid iommu_pages_list_splice(struct iommu_pages_list *from, struct iommu_pages_list *to)
{
list_splice(&from->pages, &to->pages);
}
/** * iommu_pages_list_empty - True if the list is empty * @list: List to check
*/ staticinlinebool iommu_pages_list_empty(struct iommu_pages_list *list)
{ return list_empty(&list->pages);
}
/** * iommu_alloc_pages_sz - Allocate a zeroed page of a given size from * specific NUMA node * @nid: memory NUMA node id * @gfp: buddy allocator flags * @size: Memory size to allocate, this is rounded up to a power of 2 * * Returns the virtual address of the allocated page.
*/ staticinlinevoid *iommu_alloc_pages_sz(gfp_t gfp, size_t size)
{ return iommu_alloc_pages_node_sz(NUMA_NO_NODE, gfp, size);
}
#endif/* __IOMMU_PAGES_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.25 Sekunden
(vorverarbeitet)
¤
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.