drivers/iommu/arm/arm-smmu/arm-smmu.c
Source file repositories/reference/linux-study-clean/drivers/iommu/arm/arm-smmu/arm-smmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/iommu/arm/arm-smmu/arm-smmu.c- Extension
.c- Size
- 67881 bytes
- Lines
- 2396
- Domain
- Driver Families
- Bucket
- drivers/iommu
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/acpi.hlinux/acpi_iort.hlinux/bitfield.hlinux/delay.hlinux/dma-mapping.hlinux/err.hlinux/interrupt.hlinux/io.hlinux/iopoll.hlinux/module.hlinux/of.hlinux/of_address.hlinux/pci.hlinux/platform_device.hlinux/pm_runtime.hlinux/ratelimit.hlinux/slab.hlinux/string_choices.hlinux/fsl/mc.harm-smmu.h../../dma-iommu.h
Detected Declarations
struct arm_smmu_match_datafunction arm_smmu_rpm_getfunction arm_smmu_rpm_putfunction arm_smmu_rpm_use_autosuspendfunction __arm_smmu_get_pci_sidfunction __find_legacy_master_phandlefunction of_for_each_phandlefunction arm_smmu_register_legacy_masterfunction arm_smmu_register_legacy_masterfunction __arm_smmu_free_bitmapfunction __arm_smmu_tlb_syncfunction arm_smmu_tlb_sync_globalfunction arm_smmu_tlb_sync_contextfunction arm_smmu_tlb_inv_context_s1function arm_smmu_tlb_inv_context_s2function arm_smmu_tlb_inv_range_s1function arm_smmu_tlb_inv_range_s2function arm_smmu_tlb_inv_walk_s1function arm_smmu_tlb_add_page_s1function arm_smmu_tlb_inv_walk_s2function arm_smmu_tlb_add_page_s2function arm_smmu_tlb_inv_walk_s2_v1function arm_smmu_tlb_add_page_s2_v1function arm_smmu_read_context_fault_infofunction arm_smmu_print_context_fault_infofunction arm_smmu_context_faultfunction arm_smmu_global_faultfunction arm_smmu_init_context_bankfunction arm_smmu_write_context_bankfunction arm_smmu_alloc_context_bankfunction arm_smmu_init_domain_contextfunction arm_smmu_destroy_domain_contextfunction arm_smmu_domain_freefunction arm_smmu_write_smrfunction arm_smmu_write_s2crfunction arm_smmu_write_smefunction arm_smmu_test_smr_masksfunction arm_smmu_find_smefunction arm_smmu_free_smefunction arm_smmu_master_alloc_smesfunction arm_smmu_master_free_smesfunction arm_smmu_master_install_s2crsfunction for_each_cfg_smefunction arm_smmu_attach_devfunction arm_smmu_attach_dev_typefunction arm_smmu_attach_dev_identityfunction arm_smmu_attach_dev_blockedfunction arm_smmu_map_pages
Annotated Snippet
module_init(arm_smmu_init);
static void __exit arm_smmu_exit(void)
{
arm_smmu_impl_module_exit();
platform_driver_unregister(&arm_smmu_driver);
}
module_exit(arm_smmu_exit);
MODULE_DESCRIPTION("IOMMU API for ARM architected SMMU implementations");
MODULE_AUTHOR("Will Deacon <will@kernel.org>");
MODULE_ALIAS("platform:arm-smmu");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/acpi_iort.h`, `linux/bitfield.h`, `linux/delay.h`, `linux/dma-mapping.h`, `linux/err.h`, `linux/interrupt.h`, `linux/io.h`.
- Detected declarations: `struct arm_smmu_match_data`, `function arm_smmu_rpm_get`, `function arm_smmu_rpm_put`, `function arm_smmu_rpm_use_autosuspend`, `function __arm_smmu_get_pci_sid`, `function __find_legacy_master_phandle`, `function of_for_each_phandle`, `function arm_smmu_register_legacy_master`, `function arm_smmu_register_legacy_master`, `function __arm_smmu_free_bitmap`.
- Atlas domain: Driver Families / drivers/iommu.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.