drivers/dma/fsl-edma-main.c
Source file repositories/reference/linux-study-clean/drivers/dma/fsl-edma-main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/fsl-edma-main.c- Extension
.c- Size
- 27427 bytes
- Lines
- 988
- Domain
- Driver Families
- Bucket
- drivers/dma
- 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
dt-bindings/dma/fsl-edma.hlinux/bitfield.hlinux/module.hlinux/interrupt.hlinux/clk.hlinux/of.hlinux/of_dma.hlinux/dma-mapping.hlinux/pm_runtime.hlinux/pm_domain.hlinux/property.hfsl-edma-common.h
Detected Declarations
function fsl_edma_synchronizefunction fsl_edma_tx_handlerfunction fsl_edma3_err_checkfunction scoped_guardfunction fsl_edma3_err_handler_per_chanfunction fsl_edma3_err_handler_sharedfunction fsl_edma3_tx_handlerfunction fsl_edma2_tx_handlerfunction fsl_edma3_or_tx_handlerfunction fsl_edma3_tx_0_15_handlerfunction fsl_edma3_tx_16_31_handlerfunction fsl_edma3_or_err_handlerfunction fsl_edma_err_handlerfunction fsl_edma_irq_handlerfunction fsl_edma_srcid_in_usefunction list_for_each_entry_safefunction fsl_edma_irq_initfunction fsl_edma3_irq_initfunction fsl_edma3_or_irq_initfunction fsl_edma2_irq_initfunction fsl_edma_irq_exitfunction fsl_disable_clocksfunction fsl_edma3_detach_pdfunction devm_fsl_edma3_detach_pdfunction fsl_edma3_attach_pdfunction fsl_edma_probefunction fsl_edma_removefunction fsl_edma_suspend_latefunction fsl_edma_resume_earlyfunction fsl_edma_initfunction fsl_edma_exitmodule init fsl_edma_init
Annotated Snippet
subsys_initcall(fsl_edma_init);
static void __exit fsl_edma_exit(void)
{
platform_driver_unregister(&fsl_edma_driver);
}
module_exit(fsl_edma_exit);
MODULE_DESCRIPTION("Freescale eDMA engine driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `dt-bindings/dma/fsl-edma.h`, `linux/bitfield.h`, `linux/module.h`, `linux/interrupt.h`, `linux/clk.h`, `linux/of.h`, `linux/of_dma.h`, `linux/dma-mapping.h`.
- Detected declarations: `function fsl_edma_synchronize`, `function fsl_edma_tx_handler`, `function fsl_edma3_err_check`, `function scoped_guard`, `function fsl_edma3_err_handler_per_chan`, `function fsl_edma3_err_handler_shared`, `function fsl_edma3_tx_handler`, `function fsl_edma2_tx_handler`, `function fsl_edma3_or_tx_handler`, `function fsl_edma3_tx_0_15_handler`.
- Atlas domain: Driver Families / drivers/dma.
- 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.