nvdimm_allocated_dpa(9)
nvdimm_allocated_dpa(9) πΈ β straight outta the Kernel API Manual
okay so bestie, this is a tiny little kernel helper with main character energy: it adds up the dpa thatβs already been allocated to a specific label_id. Thatβs the whole vibe. π
π NAME π
nvdimm_allocated_dpa β sum up the dpa currently allocated to this label_id
Like, literally: you give it a label_id, and it sums up the dpa currently allocated to that label_id. No cap. β¨
β¨ SYNOPSIS β¨
resource_size_t nvdimm_allocated_dpa (struct nvdimm_drvdata *ndd ,
struct nd_label_id *label_id );
π§ ARGUMENTS π§
nddβ container of dpa-resource-root + labels. Think of it as the little container holding thedpa-resource-rootand the labels together. π«Άlabel_idβ dpa resource name of the formpmem-<human readable uuid>. So itβs the dpa resource name shaped likepmem-<human readable uuid>, iykyk. π¦
π RETURN π
It returns the sum of the dpa allocated to the label_id β thatβs the resource_size_t coming back at you. Slay. π
π SEE ALSO π
- Kernel file:
./drivers/nvdimm/dimm_devs.c - Also go peek at:
nvdimm_init_nsarea(9),nd_pmem_max_contiguous_dpa(9),nd_pmem_available_dpa(9)
xoxo, your local Unix bestie π
β this page lives under ./drivers/nvdimm and itβs dated October 2026. Bye bestie, go read the kernel source fr fr π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms