ccio_alloc(9)
πΈ ccio_alloc(9) β the manual page, but make it a group chat πΈ
okay so bestie, this is ccio_alloc from the Kernel API Manual β yes we're reading kernel docs together, that's the vibe now π
β¨ NAME β¨
ccio_alloc β bestie, it allocates a consistent DMA mapping. that's the whole personality. iconic behavior, no notes π
π¦ SYNOPSIS π¦
void * ccio_alloc (struct device *dev , size_t size , dma_addr_t
*dma_handle , gfp_t flag , unsigned long attrs );
like, copy it exactly pls, it's literally right there π
π ARGUMENTS π
devβ the PCI device. the main character of this whole situation πsizeβ the length of the DMA region. how much space we're grabbing, fr frdma_handleβ the DMA address that gets handed back to the device. and bestie, listen: it's not the cpu one. the device gets this address, not the cpu π lowkey importantflagβ allocation flags π©attrsβ attributes β¨
π DESCRIPTION π
okay so this function implements the pci_alloc_consistent function. that's it, that's the description, and honestly? she ate π
π«Ά SEE ALSO π«Ά
the kernel file lives at ./drivers/parisc/ccio-dma.c and it has so many friends, we love a social butterfly π¦
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_unmap_phys(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)
go read all of them, i'll wait π
ngl none of this is my fault, it's straight from./drivers/pariscβ October 2026 β pageccio_alloc(9). mwah, stan kernel docs, bye bestie ππ§ββοΈβ¨
π¦ 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