drivers/misc/dw-xdata-pcie.c
Source file repositories/reference/linux-study-clean/drivers/misc/dw-xdata-pcie.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/misc/dw-xdata-pcie.c- Extension
.c- Size
- 9922 bytes
- Lines
- 422
- Domain
- Driver Families
- Bucket
- drivers/misc
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/miscdevice.hlinux/bitfield.hlinux/pci-epf.hlinux/kernel.hlinux/module.hlinux/device.hlinux/bitops.hlinux/mutex.hlinux/delay.hlinux/pci.hlinux/string_choices.h
Detected Declarations
struct dw_xdata_regsstruct dw_xdata_regionstruct dw_xdatafunction dw_xdata_stopfunction dw_xdata_startfunction dw_xdata_perf_measfunction dw_xdata_perf_difffunction dw_xdata_perffunction write_showfunction write_storefunction read_showfunction read_storefunction dw_xdata_pcie_probefunction dw_xdata_pcie_remove
Annotated Snippet
static struct pci_driver dw_xdata_pcie_driver = {
.name = DW_XDATA_DRIVER_NAME,
.id_table = dw_xdata_pcie_id_table,
.probe = dw_xdata_pcie_probe,
.remove = dw_xdata_pcie_remove,
};
module_pci_driver(dw_xdata_pcie_driver);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Synopsys DesignWare xData PCIe driver");
MODULE_AUTHOR("Gustavo Pimentel <gustavo.pimentel@synopsys.com>");
Annotation
- Immediate include surface: `linux/miscdevice.h`, `linux/bitfield.h`, `linux/pci-epf.h`, `linux/kernel.h`, `linux/module.h`, `linux/device.h`, `linux/bitops.h`, `linux/mutex.h`.
- Detected declarations: `struct dw_xdata_regs`, `struct dw_xdata_region`, `struct dw_xdata`, `function dw_xdata_stop`, `function dw_xdata_start`, `function dw_xdata_perf_meas`, `function dw_xdata_perf_diff`, `function dw_xdata_perf`, `function write_show`, `function write_store`.
- Atlas domain: Driver Families / drivers/misc.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.