dma_release_from_contiguous(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 πŸ‘‘


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