iommu_pagin..._alloc_flags(9)
π NAME π
iommu_paging_domain_alloc_flags β bestie, this is the one that allocates a paging domain β¨
Ok so real talk, this page lives in the Kernel API Manual and it's giving "short but mighty". Let's get into it π
πΈ SYNOPSIS πΈ
struct iommu_domain * iommu_paging_domain_alloc_flags (struct device
*dev , unsigned int flags );
Look at her. One function, two arguments, zero drama. Iconic π
π¦ ARGUMENTS π¦
devβ the device you're allocating this domain for. Like, whose domain is it? This one's. Main character device fr.flagsβ a bitmap ofiommufd_hwpt_alloc_flags. Yes bestie, it's a bitmap, so you're passing flags in there, not just a single vibe.
π DESCRIPTION π
So what does it do? It allocates a paging domain that's gonna be managed by a kernel driver. That's the whole thing. No cap.
And the return? If it works you get the allocated domain back π«Ά. If it fails, you get an ERR pointer β so like, please actually check it with IS_ERR() and don't just rawdog the pointer, iykyk π.
β SEE ALSO β
Buckle up babes, this list is long β but every single one of these is a real one and they all deserve their moment π
Kernel file ./drivers/iommu/iommu.c π
iommu_device_register(9)iommu_insert_resv_region(9)iommu_group_alloc(9)iommu_group_get_iommudata(9)iommu_group_set_iommudata(9)iommu_group_set_name(9)iommu_group_add_device(9)iommu_group_remove_device(9)iommu_group_mutex_assert(9)iommu_group_for_each_dev(9)iommu_group_get(9)iommu_group_ref_get(9)iommu_group_put(9)iommu_group_id(9)device_iommu_capable(9)iommu_group_has_isolated_msi(9)iommu_set_fault_handler(9)iommu_attach_device(9)iommu_get_domain_for_dev(9)iommu_driver_get_domain_for_dev(9)iommu_attach_group(9)iommu_unmap(9)iommu_unmap_fast(9)report_iommu_fault(9)iommu_get_resv_regions(9)iommu_put_resv_regions(9)iommu_setup_default_domain(9)iommu_device_use_default_domain(9)iommu_device_unuse_default_domain(9)iommu_group_claim_dma_owner(9)iommu_device_claim_dma_owner(9)iommu_group_release_dma_owner(9)iommu_device_release_dma_owner(9)iommu_group_dma_owner_claimed(9)iommu_replace_device_pasid(9)iommu_attach_handle_get(9)iommu_attach_group_handle(9)iommu_detach_group_handle(9)iommu_replace_group_handle(9)pci_dev_reset_iommu_prepare(9)pci_dev_reset_iommu_done(9)iommu_dma_prepare_msi(9)
β¨ And that's the whole page, bestie β¨
This cutie ships from ./drivers/iommu and it's dated October 2026 ποΈ so you know it's fresh. Go forth, allocate those paging domains, and check your ERR pointers ππ
π¦ 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