iommu_put_pages_list(9)
π iommu_put_pages_list β free a list of pages π
okay bestie, so this one lives in the Kernel API Manual (yes, that's the manual we're in, keep up π«Ά), and it's genuinely one of the simplest little functions ever. No cap. It frees a whole list of pages in one go. That's the whole vibe. Let's get into it β¨
β¨ SYNOPSIS β¨
void iommu_put_pages_list (struct iommu_pages_list *list );
that's it. that's the function. void return, one argument, zero drama π
π ARGUMENTS π
listβ the list of pages that are getting freed. that's the whole thing. hand it over and it's done π
π¦ DESCRIPTION π¦
okay so here's the tea: this function frees a list of pages that were allocated by iommu_alloc_pages_node_sz. so it's the cleanup crew, the closing shift, the "we're so done here" moment π₯
but listen β on return, the passed list is invalid π like, fully cooked. gone. don't touch it. if you're planning to use that list again for literally anything, you must reinit it with IOMMU_PAGES_LIST_INIT first. no cap, this is not optional. it's giving "read the room" energy β the list is dead, treat it like it's dead π
β οΈ bestie please remember: after this call the list is invalid, and you need IOMMU_PAGES_LIST_INIT to bring it back to life if you want to reuse it. don't skip this step, i'm begging π₯Ί
π SEE ALSO π
like, go read these next, they're all in the same little family π§:
- the kernel file
./drivers/iommu/iommu-pages.c iommu_alloc_pages_node_sz(9)iommu_free_pages(9)iommu_pages_start_incoherent(9)iommu_pages_start_incoherent_list(9)iommu_pages_stop_incoherent_list(9)iommu_pages_free_incoherent(9)
all icons, all in the group chat, all worth a read π
β sign-off β
this page came to you straight out of ./drivers/iommu, dated October 2026, from the Kernel API Manual. slay. go free some pages responsibly ππ
π¦ 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