dma_info_to_prot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ¦‹


xoxo bestie πŸ’– source/version: ./drivers/iommu Β· date: October 2026 Β· dma_info_to_prot(9) signing off πŸŽ€

πŸ“¦ where this page comes from