drivers/dma/sf-pdma/sf-pdma.c
Source file repositories/reference/linux-study-clean/drivers/dma/sf-pdma/sf-pdma.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/sf-pdma/sf-pdma.c- Extension
.c- Size
- 16363 bytes
- Lines
- 660
- 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
linux/module.hlinux/device.hlinux/kernel.hlinux/platform_device.hlinux/mod_devicetable.hlinux/dma-mapping.hlinux/of.hlinux/of_dma.hlinux/slab.hsf-pdma.h
Detected Declarations
function Copyrightfunction writeqfunction sf_pdma_fill_descfunction sf_pdma_disclaim_chanfunction sf_pdma_prep_dma_memcpyfunction sf_pdma_slave_configfunction sf_pdma_alloc_chan_resourcesfunction sf_pdma_disable_requestfunction sf_pdma_free_chan_resourcesfunction sf_pdma_desc_residuefunction sf_pdma_tx_statusfunction sf_pdma_terminate_allfunction sf_pdma_enable_requestfunction sf_pdma_xfer_descfunction sf_pdma_issue_pendingfunction sf_pdma_free_descfunction sf_pdma_donebh_taskletfunction sf_pdma_errbh_taskletfunction sf_pdma_done_isrfunction sf_pdma_err_isrfunction sf_pdma_irq_initfunction sf_pdma_setup_chansfunction sf_pdma_probefunction sf_pdma_removefunction sf_pdma_initfunction sf_pdma_exitmodule init sf_pdma_init
Annotated Snippet
subsys_initcall(sf_pdma_init);
module_exit(sf_pdma_exit);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("SiFive Platform DMA driver");
MODULE_AUTHOR("Green Wan <green.wan@sifive.com>");
Annotation
- Immediate include surface: `linux/module.h`, `linux/device.h`, `linux/kernel.h`, `linux/platform_device.h`, `linux/mod_devicetable.h`, `linux/dma-mapping.h`, `linux/of.h`, `linux/of_dma.h`.
- Detected declarations: `function Copyright`, `function writeq`, `function sf_pdma_fill_desc`, `function sf_pdma_disclaim_chan`, `function sf_pdma_prep_dma_memcpy`, `function sf_pdma_slave_config`, `function sf_pdma_alloc_chan_resources`, `function sf_pdma_disable_request`, `function sf_pdma_free_chan_resources`, `function sf_pdma_desc_residue`.
- 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.