drivers/pci/hotplug/octep_hp.c
Source file repositories/reference/linux-study-clean/drivers/pci/hotplug/octep_hp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pci/hotplug/octep_hp.c- Extension
.c- Size
- 11196 bytes
- Lines
- 428
- 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.
- 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/cleanup.hlinux/container_of.hlinux/delay.hlinux/dev_printk.hlinux/init.hlinux/interrupt.hlinux/io-64-nonatomic-lo-hi.hlinux/kernel.hlinux/list.hlinux/module.hlinux/mutex.hlinux/pci.hlinux/pci_hotplug.hlinux/slab.hlinux/spinlock.hlinux/workqueue.h
Detected Declarations
struct octep_hp_cmdstruct octep_hp_slotstruct octep_hp_intr_infostruct octep_hp_controllerenum octep_hp_intr_typefunction octep_hp_enable_pdevfunction octep_hp_disable_pdevfunction octep_hp_enable_slotfunction octep_hp_disable_slotfunction octep_hp_register_slotfunction octep_hp_deregister_slotfunction octep_hp_cmd_handlerfunction octep_hp_work_handlerfunction octep_hp_intr_typefunction octep_hp_intr_handlerfunction octep_hp_irq_cleanupfunction octep_hp_request_irqfunction octep_hp_controller_setupfunction octep_hp_pci_probe
Annotated Snippet
static struct pci_driver octep_hp = {
.name = OCTEP_HP_DRV_NAME,
.id_table = octep_hp_pci_map,
.probe = octep_hp_pci_probe,
};
module_pci_driver(octep_hp);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Marvell");
MODULE_DESCRIPTION("Marvell OCTEON PCI Hotplug driver");
Annotation
- Immediate include surface: `linux/cleanup.h`, `linux/container_of.h`, `linux/delay.h`, `linux/dev_printk.h`, `linux/init.h`, `linux/interrupt.h`, `linux/io-64-nonatomic-lo-hi.h`, `linux/kernel.h`.
- Detected declarations: `struct octep_hp_cmd`, `struct octep_hp_slot`, `struct octep_hp_intr_info`, `struct octep_hp_controller`, `enum octep_hp_intr_type`, `function octep_hp_enable_pdev`, `function octep_hp_disable_pdev`, `function octep_hp_enable_slot`, `function octep_hp_disable_slot`, `function octep_hp_register_slot`.
- Atlas domain: Representative Device Path / PCIe NVMe Storage Path.
- 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.