drivers/usb/cdns3/cdnsp-pci.c
Source file repositories/reference/linux-study-clean/drivers/usb/cdns3/cdnsp-pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/cdns3/cdnsp-pci.c- Extension
.c- Size
- 5885 bytes
- Lines
- 249
- Domain
- Driver Families
- Bucket
- drivers/usb
- 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/platform_device.hlinux/dma-mapping.hlinux/kernel.hlinux/module.hlinux/slab.hlinux/pci.hcore.hgadget-export.h
Detected Declarations
function Copyrightfunction cdnsp_pci_probefunction cdnsp_pci_removefunction cdnsp_pci_suspendfunction cdnsp_pci_resume
Annotated Snippet
static struct pci_driver cdnsp_pci_driver = {
.name = "cdnsp-pci",
.id_table = cdnsp_pci_ids,
.probe = cdnsp_pci_probe,
.remove = cdnsp_pci_remove,
.driver = {
.pm = &cdnsp_pci_pm_ops,
}
};
module_pci_driver(cdnsp_pci_driver);
MODULE_DEVICE_TABLE(pci, cdnsp_pci_ids);
MODULE_ALIAS("pci:cdnsp");
MODULE_AUTHOR("Pawel Laszczak <pawell@cadence.com>");
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Cadence CDNSP PCI driver");
Annotation
- Immediate include surface: `linux/platform_device.h`, `linux/dma-mapping.h`, `linux/kernel.h`, `linux/module.h`, `linux/slab.h`, `linux/pci.h`, `core.h`, `gadget-export.h`.
- Detected declarations: `function Copyright`, `function cdnsp_pci_probe`, `function cdnsp_pci_remove`, `function cdnsp_pci_suspend`, `function cdnsp_pci_resume`.
- Atlas domain: Driver Families / drivers/usb.
- 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.