drivers/pci/hotplug/cpcihp_zt5550.c
Source file repositories/reference/linux-study-clean/drivers/pci/hotplug/cpcihp_zt5550.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pci/hotplug/cpcihp_zt5550.c- Extension
.c- Size
- 7467 bytes
- Lines
- 310
- Domain
- Representative Device Path
- Bucket
- PCIe NVMe Storage Path
- Inferred role
- Representative Device Path: operation-table or driver-model contract
- Status
- pattern implementation candidate
Why This File Exists
Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/moduleparam.hlinux/init.hlinux/errno.hlinux/pci.hlinux/interrupt.hlinux/signal.hcpci_hotplug.hcpcihp_zt5550.h
Detected Declarations
function zt5550_hc_configfunction zt5550_hc_cleanupfunction zt5550_hc_query_enumfunction zt5550_hc_check_irqfunction zt5550_hc_enable_irqfunction zt5550_hc_disable_irqfunction zt5550_hc_init_onefunction zt5550_hc_remove_onefunction zt5550_initfunction zt5550_exitmodule init zt5550_init
Annotated Snippet
static struct pci_driver zt5550_hc_driver = {
.name = "zt5550_hc",
.id_table = zt5550_hc_pci_tbl,
.probe = zt5550_hc_init_one,
.remove = zt5550_hc_remove_one,
};
static int __init zt5550_init(void)
{
struct resource *r;
int rc;
info(DRIVER_DESC " version: " DRIVER_VERSION);
r = request_region(ENUM_PORT, 1, "#ENUM hotswap signal register");
if (!r)
return -EBUSY;
rc = pci_register_driver(&zt5550_hc_driver);
if (rc < 0)
release_region(ENUM_PORT, 1);
return rc;
}
static void __exit
zt5550_exit(void)
{
pci_unregister_driver(&zt5550_hc_driver);
release_region(ENUM_PORT, 1);
}
module_init(zt5550_init);
module_exit(zt5550_exit);
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL");
module_param(debug, bool, 0644);
MODULE_PARM_DESC(debug, "Debugging mode enabled or not");
module_param(poll, bool, 0644);
MODULE_PARM_DESC(poll, "#ENUM polling mode enabled or not");
Annotation
- Immediate include surface: `linux/module.h`, `linux/moduleparam.h`, `linux/init.h`, `linux/errno.h`, `linux/pci.h`, `linux/interrupt.h`, `linux/signal.h`, `cpci_hotplug.h`.
- Detected declarations: `function zt5550_hc_config`, `function zt5550_hc_cleanup`, `function zt5550_hc_query_enum`, `function zt5550_hc_check_irq`, `function zt5550_hc_enable_irq`, `function zt5550_hc_disable_irq`, `function zt5550_hc_init_one`, `function zt5550_hc_remove_one`, `function zt5550_init`, `function zt5550_exit`.
- Atlas domain: Representative Device Path / PCIe NVMe Storage Path.
- Implementation status: pattern implementation candidate.
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.