drivers/iommu/omap-iommu.c
Source file repositories/reference/linux-study-clean/drivers/iommu/omap-iommu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/iommu/omap-iommu.c- Extension
.c- Size
- 41987 bytes
- Lines
- 1767
- 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/dma-mapping.hlinux/err.hlinux/slab.hlinux/interrupt.hlinux/ioport.hlinux/platform_device.hlinux/iommu.hlinux/omap-iommu.hlinux/mutex.hlinux/spinlock.hlinux/io.hlinux/pm_runtime.hlinux/of.hlinux/of_irq.hlinux/of_platform.hlinux/regmap.hlinux/mfd/syscon.hlinux/platform_data/iommu-omap.homap-iopgtable.homap-iommu.h
Detected Declarations
function omap_iommu_save_ctxfunction omap_iommu_restore_ctxfunction dra7_cfg_dspsys_mmufunction __iommu_set_twlfunction omap2_iommu_enablefunction omap2_iommu_disablefunction iommu_enablefunction iommu_disablefunction iotlb_cr_to_virtfunction get_iopte_attrfunction iommu_report_faultfunction iotlb_lock_getfunction iotlb_lock_setfunction iotlb_read_crfunction iotlb_load_crfunction __iotlb_read_crfunction load_iotlb_entryfunction load_iotlb_entryfunction prefetch_iotlb_entryfunction flush_iotlb_pagefunction for_each_iotlb_crfunction flush_iotlb_allfunction flush_iopte_rangefunction iopte_freefunction iopgd_alloc_sectionfunction iopgd_alloc_superfunction iopte_alloc_pagefunction iopte_alloc_largefunction iopgtable_store_entry_corefunction omap_iopgtable_store_entryfunction iopgtable_lookup_entryfunction iopgtable_clear_entry_corefunction iopgtable_clear_entryfunction iopgtable_clear_entry_allfunction iommu_fault_handlerfunction omap_iommu_attachfunction omap_iommu_detachfunction omap_iommu_save_tlb_entriesfunction omap_iommu_restore_tlb_entriesfunction omap_iommu_domain_deactivatefunction omap_iommu_domain_activatefunction omap_iommu_runtime_suspendfunction omap_iommu_runtime_resumefunction omap_iommu_preparefunction omap_iommu_can_registerfunction omap_iommu_dra7_get_dsp_system_cfgfunction MMUfunction omap_iommu_remove
Annotated Snippet
subsys_initcall(omap_iommu_init);
/* must be ready before omap3isp is probed */
Annotation
- Immediate include surface: `linux/dma-mapping.h`, `linux/err.h`, `linux/slab.h`, `linux/interrupt.h`, `linux/ioport.h`, `linux/platform_device.h`, `linux/iommu.h`, `linux/omap-iommu.h`.
- Detected declarations: `function omap_iommu_save_ctx`, `function omap_iommu_restore_ctx`, `function dra7_cfg_dspsys_mmu`, `function __iommu_set_twl`, `function omap2_iommu_enable`, `function omap2_iommu_disable`, `function iommu_enable`, `function iommu_disable`, `function iotlb_cr_to_virt`, `function get_iopte_attr`.
- 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.