iommu_put_msi_cookie(9)
π iommu_put_msi_cookie β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual β¨ this one's short and sweet and it's literally about cleaning up after yourself, which is so main character of you.
πΈ NAME πΈ
iommu_put_msi_cookie β release a domain's MSI mapping resources π
like, you grabbed the cookie earlier, now put it back. that's it. that's the vibe check. π
β¨ SYNOPSIS β¨
void iommu_put_msi_cookie (struct iommu_domain *domain );
no return value, ngl β it's a void function, it just does the thing and leaves. iconique. π¦
π«Ά ARGUMENTS π«Ά
domainβ the IOMMU domain that you previously prepped withiommu_get_msi_cookie. yes, the same one. the one you already had. don't come in here with a random domain, bestie, that's not the assignment π
π₯ SEE ALSO π₯
the whole friend group, fr fr β this all lives in the kernel file ./drivers/iommu/dma-iommu.c:
iommu_get_dma_cookie(9)iommu_get_msi_cookie(9)iommu_put_dma_cookie(9)iommu_dma_get_resv_regions(9)iommu_dma_init_options(9)iommu_dma_init_domain(9)dma_info_to_prot(9)dma_iova_try_alloc(9)dma_iova_free(9)dma_iova_link(9)dma_iova_sync(9)dma_iova_unlink(9)dma_iova_destroy(9)
go read them, iykyk π
ngl the get/put symmetry here is giving "you made the mess, you clean it up" and honestly? we respect it. pair this with iommu_get_msi_cookie or it's lowkey just you releasing something you never grabbed π
and that's the whole page, bestie, you ate that π this lil slice of the Kernel API Manual came from ./drivers/iommu and it's dated October 2026 β so go forth, release those MSI mapping resources, and slay πππ
π¦ 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