iommu_get_dma_cookie(9)
π iommu_get_dma_cookie(9) β Kernel API Manual π
okay so bestie, welcome to the glow-up of iommu_get_dma_cookie(9), straight outta the Kernel API Manual. this one's short and sweet β it's giving "small function, big responsibility" energy, and honestly? we're obsessed π
β¨ NAME β¨
iommu_get_dma_cookie β grab the DMA-API resources for a domain, bestie π
like, that's literally the whole job. acquire the DMA-API resources. for a domain. slay.
πΈ SYNOPSIS πΈ
int iommu_get_dma_cookie (struct iommu_domain *domain );
copy it exactly like that, no cap β yes, the spacing is a little quirky, she's iconic that way π¦
π ARGUMENTS π
domainβ the IOMMU domain you're prepping for DMA-API usage π«Ά that's the one and only thing you hand her.
π₯ SEE ALSO π₯
so if you wanna go down the rabbit hole (and you should, iykyk), here's the whole friend group:
Kernel file ./drivers/iommu/dma-iommu.c, plus:
iommu_get_msi_cookie(9)iommu_put_dma_cookie(9)iommu_put_msi_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)
literally the whole squad π go read them, they ate π
π friendly reminder: get the cookie, and remember there's a iommu_put_dma_cookie(9) for when you're done β balance, bestie, it's giving main character energy π§
β that's the whole page, babes β this lil masterpiece lives in ./drivers/iommu, dated October 2026 β stay hydrated, keep your cookies matched, and see you in the next manpage πβ¨π
π¦ 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