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.

Dependency Surface

Detected Declarations

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

Implementation Notes