drivers/pci/slot.c
Source file repositories/reference/linux-study-clean/drivers/pci/slot.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pci/slot.c- Extension
.c- Size
- 10028 bytes
- Lines
- 376
- 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/kobject.hlinux/slab.hlinux/pci.hlinux/err.hpci.h
Detected Declarations
function pci_slot_attr_showfunction pci_slot_attr_storefunction address_read_filefunction bus_speed_readfunction max_speed_read_filefunction cur_speed_read_filefunction pci_slot_releasefunction rename_slotfunction pci_dev_assign_slotfunction pci_destroy_slotfunction pci_slot_initmodule init pci_slot_initexport pci_slots_ksetexport pci_create_slotexport pci_destroy_slot
Annotated Snippet
subsys_initcall(pci_slot_init);
Annotation
- Immediate include surface: `linux/kobject.h`, `linux/slab.h`, `linux/pci.h`, `linux/err.h`, `pci.h`.
- Detected declarations: `function pci_slot_attr_show`, `function pci_slot_attr_store`, `function address_read_file`, `function bus_speed_read`, `function max_speed_read_file`, `function cur_speed_read_file`, `function pci_slot_release`, `function rename_slot`, `function pci_dev_assign_slot`, `function pci_destroy_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.