drivers/pci/hotplug/rpadlpar_core.c
Source file repositories/reference/linux-study-clean/drivers/pci/hotplug/rpadlpar_core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pci/hotplug/rpadlpar_core.c- Extension
.c- Size
- 10284 bytes
- Lines
- 483
- Domain
- Representative Device Path
- Bucket
- PCIe NVMe Storage Path
- Inferred role
- Representative Device Path: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/init.hlinux/module.hlinux/of.hlinux/pci.hlinux/string.hlinux/vmalloc.hasm/pci-bridge.hlinux/mutex.hasm/rtas.hasm/vio.hlinux/firmware.h../pci.hrpaphp.hrpadlpar.h
Detected Declarations
function for_each_child_of_nodefunction for_each_node_by_namefunction list_for_each_entry_safefunction list_for_each_entryfunction dlpar_pci_add_busfunction dlpar_add_pci_slotfunction dlpar_remove_phbfunction dlpar_add_phbfunction dlpar_add_vio_slotfunction dlpar_add_slotfunction dlpar_remove_vio_slotfunction dlpar_remove_pci_slotfunction dlpar_remove_slotfunction is_dlpar_capablefunction rpadlpar_io_initfunction rpadlpar_io_exitmodule init rpadlpar_io_init
Annotated Snippet
module_init(rpadlpar_io_init);
module_exit(rpadlpar_io_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("RPA Dynamic Logical Partitioning driver for I/O slots");
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `linux/of.h`, `linux/pci.h`, `linux/string.h`, `linux/vmalloc.h`, `asm/pci-bridge.h`, `linux/mutex.h`.
- Detected declarations: `function for_each_child_of_node`, `function for_each_node_by_name`, `function list_for_each_entry_safe`, `function list_for_each_entry`, `function dlpar_pci_add_bus`, `function dlpar_add_pci_slot`, `function dlpar_remove_phb`, `function dlpar_add_phb`, `function dlpar_add_vio_slot`, `function dlpar_add_slot`.
- Atlas domain: Representative Device Path / PCIe NVMe Storage Path.
- Implementation status: integration 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.