block/partitions/of.c
Source file repositories/reference/linux-study-clean/block/partitions/of.c
File Facts
- System
- Linux kernel
- Corpus path
block/partitions/of.c- Extension
.c- Size
- 2615 bytes
- Lines
- 112
- Domain
- Representative Device Path
- Bucket
- PCIe NVMe Storage Path
- Inferred role
- Representative Device Path: implementation source
- Status
- source 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 or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/blkdev.hlinux/major.hlinux/of.hlinux/string.hcheck.h
Detected Declarations
function validate_of_partitionfunction add_of_partitionfunction of_partition
Annotated Snippet
if (validate_of_partition(np, slot)) {
of_node_put(np);
of_node_put(partitions_np);
return -1;
}
slot++;
}
slot = 1;
for_each_child_of_node(partitions_np, np) {
if (slot >= state->limit) {
of_node_put(np);
break;
}
add_of_partition(state, slot, np);
slot++;
}
seq_buf_puts(&state->pp_buf, "\n");
of_node_put(partitions_np);
return 1;
}
Annotation
- Immediate include surface: `linux/blkdev.h`, `linux/major.h`, `linux/of.h`, `linux/string.h`, `check.h`.
- Detected declarations: `function validate_of_partition`, `function add_of_partition`, `function of_partition`.
- Atlas domain: Representative Device Path / PCIe NVMe Storage Path.
- Implementation status: source 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.