ccio_alloc_range(9)
π ccio_alloc_range(9) β Kernel API Manual β¨
okay bestie, so this is a page from the Kernel API Manual for ccio_alloc_range β yes the (9) means kernel-section, we love a glow-up π
. Strap in, it's short but it eats.
πΈ NAME πΈ
ccio_alloc_range β literally allocates pages in the ioc's resource map. that's the whole vibe. β¨
π¦ SYNOPSIS π¦
int ccio_alloc_range (struct ioc *ioc , struct device *dev , size_t size
);
that's it, that's the whole signature. no cap. π«Ά
π ARGUMENTS π
iocβ The I/O Controller. the main character here, honestly πdevβ The PCI device. hi bestie, welcome to the party πsizeβ The requested number of bytes to be mapped into the I/O Pdir... (yes the original trail-off with the three dots is canonical, we respect the ellipsis π)
β DESCRIPTION β
So what does this function do? It searches the resource map of the ioc to locate a range of available pages for the requested size. That's it. That's the assignment. It finds you the pages you asked for in the ioc's resource map. lowkey iconic, highkey useful. π₯
ngl, the manpage gives you exactly this one sentence of behaviour, so don't come at me for more β I'm not out here inventing lore π
π SEE ALSO π
Kernel file ./drivers/parisc/ccio-dma.c β go read it, iykyk π§
and the whole friend group, in this order:
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_unmap_phys(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)
and that's the page, bestie π it lives at ./drivers/parisc, it's dated October 2026, and it goes by ccio_alloc_range(9) β periodt. go touch some IOMMU π¦πΈπ
π¦ 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