dma_release_from_contiguous(9)
π¦ dma_release_from_contiguous(9)
okay so welcome to the Kernel API Manual entry for dma_release_from_contiguous, bestie β¨ it's giving short-and-sweet kernel energy, and it's literally all about releasing allocated pages. π
πΈ NAME πΈ
dma_release_from_contiguous - release allocated pages π
β¨ SYNOPSIS β¨
here's the signature, no crumbs:
bool dma_release_from_contiguous (struct device *dev , struct page
*pages , int count );
π ARGUMENTS π
devβ pointer to the device for which the pages were allocated π«Άpagesβ the allocated pages πcountβ number of allocated pages π’
π DESCRIPTION π
this function releases memory allocated by dma_alloc_from_contiguous. that's the main character move here. π
it returns false when the provided pages do not belong to a contiguous area, and true otherwise β so yes, it's lowkey doing a vibe check on whether your pages belong to that contiguous area or not. π
π§ SEE ALSO π§
Kernel file ./kernel/dma/contiguous.c β go peek at the source, iykyk π
dma_contiguous_get_area_by_idx(9)dma_contiguous_reserve(9)dma_contiguous_reserve_area(9)dma_alloc_from_contiguous(9)dma_alloc_contiguous(9)dma_free_contiguous(9)
kisses from the ./kernel/dma corner of the tree, October 2026 edition β signing off for dma_release_from_contiguous(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