arm_iommu_map_phys(9)
π arm_iommu_map_phys(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is arm_iommu_map_phys(9), and no, the NAME section lowkey has no description, that's just how it ships, we don't ask questions π«Ά
πΈ NAME πΈ
arm_iommu_map_phys β and that's literally it, the description slot is empty, the void, nothing there, so don't come for me π (the manual genuinely leaves it blank, fr fr)
β¨ SYNOPSIS β¨
dma_addr_t arm_iommu_map_phys (struct device *dev , phys_addr_t phys ,
size_t size , enum dma_data_direction dir , unsigned long attrs );
so it hands you back a dma_addr_t, that's the vibe π
π ARGUMENTS π
devβ a validstruct devicepointer π and yes valid is doing a LOT of heavy lifting in that sentence, please respect itphysβ the physical address that the buffer resides in π that's its whole home addresssizeβ size of the buffer to map, like how much of it we're claiming πΈdirβ the DMA transfer direction, iykyk π¦attrsβ the DMA mapping attributes β¨ lil extra seasoning
π DESCRIPTION π
it's the IOMMU aware version of arm_dma_map_page π§ that's the entire description, she's concise, she's iconic, she said what she said periodt π₯
π SEE ALSO π
- the kernel file
./arch/arm/mm/dma-mapping.cβ go read the source bestie, it's giving main character energy π arm_iommu_map_sg(9)arm_iommu_unmap_sg(9)arm_iommu_sync_sg_for_cpu(9)arm_iommu_sync_sg_for_device(9)arm_iommu_create_mapping(9)arm_iommu_attach_device(9)arm_iommu_detach_device(9)
like, the whole friend group, they roll together π«Ά
ngl bestie this one's a shortie β but every single one of those eight SEE ALSO pages is listed up there, no cap, I didn't skip a single one π
and that's the page!! π this little gem lives in ./arch/arm/mm and the date on it is October 2026, so mark your calendar β mwah, go map some physical memory for your device, slay π
π¦ 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