drivers/usb/gadget/udc/amd5536udc_pci.c
Source file repositories/reference/linux-study-clean/drivers/usb/gadget/udc/amd5536udc_pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/gadget/udc/amd5536udc_pci.c- Extension
.c- Size
- 4948 bytes
- Lines
- 217
- 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.
- 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/device.hlinux/dmapool.hlinux/interrupt.hlinux/io.hlinux/irq.hlinux/module.hlinux/moduleparam.hlinux/prefetch.hlinux/pci.hamd5536udc.h
Detected Declarations
function udc_pci_removefunction udc_pci_probe
Annotated Snippet
static struct pci_driver udc_pci_driver = {
.name = name,
.id_table = pci_id,
.probe = udc_pci_probe,
.remove = udc_pci_remove,
};
module_pci_driver(udc_pci_driver);
MODULE_DESCRIPTION(UDC_MOD_DESCRIPTION);
MODULE_AUTHOR("Thomas Dahlmann");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/device.h`, `linux/dmapool.h`, `linux/interrupt.h`, `linux/io.h`, `linux/irq.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/prefetch.h`.
- Detected declarations: `function udc_pci_remove`, `function udc_pci_probe`.
- 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.
- 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.