dma_info_to_prot(9)
π NAME π
okay bestie, meet dma_info_to_prot(9) from the Kernel API Manual β sheβs literally the translator of the kernel group chat: she takes DMA API directions and attributes and turns them into IOMMU API page flags β¨π
β¨ SYNOPSIS β¨
the signature is serving exactly this:
int dma_info_to_prot (enum dma_data_direction dir , bool coherent ,
unsigned long attrs );
π ARGUMENTS π
dirβ direction of the DMA transfer π§coherentβ is the DMA master cache-coherent? (the question, not a vibe check π)attrsβ DMA attributes for the mapping π
πΈ RETURN πΈ
she returns the corresponding IOMMU API page protection flags β thatβs the whole return, no cap π
π¦ SEE ALSO π¦
- Kernel file
./drivers/iommu/dma-iommu.cβ the home base, highkey iconic π iommu_get_dma_cookie(9)iommu_get_msi_cookie(9)iommu_put_dma_cookie(9)iommu_put_msi_cookie(9)iommu_dma_get_resv_regions(9)iommu_dma_init_options(9)iommu_dma_init_domain(9)dma_iova_try_alloc(9)dma_iova_free(9)dma_iova_link(9)dma_iova_sync(9)dma_iova_unlink(9)dma_iova_destroy(9)
xoxo bestie π source/version: ./drivers/iommu Β· date: October 2026 Β· dma_info_to_prot(9) signing off π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms