iommu_put_pages_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🧚:

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