nd_pmem_available_dpa(9)
β¨ NAME β¨
Okay so bestie, this is nd_pmem_available_dpa(9) from the Kernel API Manual, and itβs literally here to, for the given dimm+region, account unallocated dpa. π«Ά
πΈ SYNOPSIS πΈ
resource_size_t nd_pmem_available_dpa (struct nd_region *nd_region , struct nd_mapping *nd_mapping );
π ARGUMENTS π
nd_regionβ constrain the available space check to this reference region. Thatβs the region vibe check, basically. β¨nd_mappingβ container of dpa-resource-root + labels. Itβs giving βmapping containerβ energy. π
π DESCRIPTION π
Validate that a PMEM label, if present, aligns with the start of an interleave set. No cap, thatβs the whole job: alignment check, slay. π¦
β RETURN β
0 if there is an alignment error, otherwise the unallocated dpa. Thatβs it, bestie β zero means alignment said βnot today,β and anything else is the unallocated dpa. π
π SEE ALSO π
- Kernel file
./drivers/nvdimm/dimm_devs.c nvdimm_init_nsarea(9)nd_pmem_max_contiguous_dpa(9)nvdimm_allocated_dpa(9)
And thatβs the whole page, bestie π β source/version is from ./drivers/nvdimm, and the date is October 2026. Go forth and align those labels, periodt. β¨π
π¦ 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