drivers/pci/hotplug/pci_hotplug_core.c
Source file repositories/reference/linux-study-clean/drivers/pci/hotplug/pci_hotplug_core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pci/hotplug/pci_hotplug_core.c- Extension
.c- Size
- 15466 bytes
- Lines
- 580
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/moduleparam.hlinux/kernel.hlinux/types.hlinux/kobject.hlinux/sysfs.hlinux/init.hlinux/pci.hlinux/pci_hotplug.h../pci.hcpci_hotplug.h
Detected Declarations
function power_read_filefunction power_write_filefunction attention_read_filefunction attention_write_filefunction latch_read_filefunction presence_read_filefunction test_write_filefunction has_power_filefunction has_attention_filefunction has_latch_filefunction has_adapter_filefunction has_test_filefunction fs_add_slotfunction fs_remove_slotfunction pci_hp_initializefunction __pci_hp_initializefunction pci_hp_addfunction pci_hp_registerfunction pci_hp_delfunction hotplug_slot_namefunction pci_hp_unignore_link_changefunction pci_hp_unignore_link_changefunction pci_hp_spurious_link_changefunction pci_hotplug_initmodule init pci_hotplug_initexport __pci_hp_registerexport __pci_hp_initializeexport pci_hp_addexport pci_hp_deregisterexport pci_hp_delexport pci_hp_destroy
Annotated Snippet
device_initcall(pci_hotplug_init);
/*
* not really modular, but the easiest way to keep compat with existing
* bootargs behaviour is to continue using module_param here.
*/
module_param(debug, bool, 0644);
MODULE_PARM_DESC(debug, "Debugging mode enabled or not");
Annotation
- Immediate include surface: `linux/module.h`, `linux/moduleparam.h`, `linux/kernel.h`, `linux/types.h`, `linux/kobject.h`, `linux/sysfs.h`, `linux/init.h`, `linux/pci.h`.
- Detected declarations: `function power_read_file`, `function power_write_file`, `function attention_read_file`, `function attention_write_file`, `function latch_read_file`, `function presence_read_file`, `function test_write_file`, `function has_power_file`, `function has_attention_file`, `function has_latch_file`.
- Atlas domain: Representative Device Path / PCIe NVMe Storage Path.
- Implementation status: integration 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.