iommu_dma_init_options(9)
β¨ iommu_dma_init_options β¨
okay so bestie, welcome to the Kernel API Manual π
this one's short and sweet β it's iommu_dma_init_options, and no cap it's literally just "set up the options struct." Let's get into it π
πΈ SYNOPSIS πΈ
void iommu_dma_init_options (struct iommu_dma_options *options , struct
device *dev );
like, that's the whole thing. it returns void β nothing comes back, she just does her thing and dips π¦
π«Ά ARGUMENTS π«Ά
optionsβ the options to be initialized π this is the struct you're handing over, and she's gonna fill it in for you.devβ the device the options are set for β¨ so like, whose vibe are we tuning here? this device. it's this one.
π DESCRIPTION π
This is the little tuning hook β it lets the dma-iommu stuff get customized to match the device's properties π that's it, that's the whole job. specific to device properties, periodt.
π¦ SEE ALSO π¦
the kernel file lives at ./drivers/iommu/dma-iommu.c β go read it, iykyk π and here's the whole friend group:
iommu_get_dma_cookie(9)iommu_get_msi_cookie(9)iommu_put_dma_cookie(9)iommu_put_msi_cookie(9)iommu_dma_get_resv_regions(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)
fr fr, that's a lot of see-also's for such a tiny function π but they're all valid, go click around, it's giving "the lore" π
aaaand that's the page babes π brought to you from ./drivers/iommu, dated October 2026 β mwah, go init some options, you're gonna 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