ccio_unmap_phys(9)
okay so bestie, this is ccio_unmap_phys(9) from the Kernel API Manual, and it's giving βclean up that DMA address rangeβ energy. no cap, today we're unmapping from the IOMMU. π
π NAME π
ccio_unmap_phys β unmap an address range from the IOMMU. periodt.
πΈ SYNOPSIS πΈ
void ccio_unmap_phys (struct device *dev , dma_addr_t iova , size_t
size , enum dma_data_direction direction , unsigned long attrs );
β¨ ARGUMENTS β¨
okay so here's the cast, and yes every single one matters:
struct device *devβ the PCI device. that's the whole vibe.dma_addr_t iovaβ the start address of the DMA region. iconic starting point, fr fr.size_t sizeβ the length of the DMA region. gotta know how much we're working with πenum dma_data_direction directionβ the direction of the DMA transaction (to/from device). yes, direction girlies rise π«Άunsigned long attrsβ attributes. and that's literally it, bestie, the whole description π
π₯ SEE ALSO π₯
the kernel file ./drivers/parisc/ccio-dma.c is the main character here, and the whole squad rolls deep:
ccio_alloc_range(9)ccio_free_range(9)ccio_io_pdir_entry(9)ccio_clear_io_tlb(9)ccio_mark_invalid(9)ccio_dma_supported(9)ccio_map_single(9)ccio_alloc(9)ccio_free(9)ccio_map_sg(9)ccio_unmap_sg(9)ccio_find_ioc(9)ccio_get_iommu(9)ccio_ioc_init(9)ccio_probe(9)ccio_init(9)
mwah π β from the ./drivers/parisc source/version, dated October 2026, page ccio_unmap_phys(9) π«Ά
π¦ 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