dma_contiguo..._area_by_idx(9)
π dma_contiguous_get_area_by_idx(9) β from the Kernel API Manual, bestie
Okay so we're in the <pink>Kernel API Manual</pink> today and the star of the show is dma_contiguous_get_area_by_idx β say that five times fast, I dare you π
β¨ NAME β¨
dma_contiguous_get_area_by_idx β grab the contiguous area that lives at whatever index you hand it π
π¦ SYNOPSIS π¦
struct cma * dma_contiguous_get_area_by_idx (unsigned int idx );
That's it. That's the whole vibe. One function, one arg, returns a pointer. Iconic.
π ARGUMENTS π
idxβ the index of the area we're querying, like the little number tag on the door of the area you want πͺβ¨
πΈ DESCRIPTION πΈ
So basically you ask it for the contiguous area that's sitting at index idx, and it goes and queries for it. Lowkey simple, highkey useful. It's giving "personal shopper for DMA areas" and honestly? Obsessed π«Ά
π₯ RETURN π₯
You get back a pointer to the requested contiguous area, or NULL if there isn't one. So like... check it before you deref it, bestie, no cap π
π SEE ALSO π
- The kernel file
./kernel/dma/contiguous.cβ the main character herself dma_contiguous_reserve(9)dma_contiguous_reserve_area(9)dma_alloc_from_contiguous(9)dma_release_from_contiguous(9)dma_alloc_contiguous(9)dma_free_contiguous(9)
Go read them, they're all part of the same friend group π
Signed, sealed, delivered with love from ./kernel/dma π β October 2026, the season of contiguous areas and good vibes only ππ§
π¦ 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