dma_contiguo..._area_by_idx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ

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