nd_pmem_max_contiguous_dpa(9)
β¨ NAME β¨
okay so bestie, welcome to the Kernel API Manual page for nd_pmem_max_contiguous_dpa(9) β and the function nd_pmem_max_contiguous_dpa is literally here to, for the given dimm+region, return the max contiguous unallocated dpa range. that's the whole assignment, no cap π
π
πΈ SYNOPSIS πΈ
the signature is giving exactly this, periodt:
resource_size_t nd_pmem_max_contiguous_dpa (struct nd_region *nd_region
, struct nd_mapping *nd_mapping );
π ARGUMENTS π
nd_regionβ constrain available space check to this reference region. it's the reference-region bestie for the available-space check π«Άnd_mappingβ container ofdpa-resource-root+ labels. the little container situation, iykyk β¨
π₯ RETURN π₯
0if there is an alignment error- otherwise, the max unallocated
dparange
so yeah: alignment error? 0. otherwise? max unallocated dpa range. slay πβ¨
π SEE ALSO π
go read these too, bestie:
- Kernel file
./drivers/nvdimm/dimm_devs.c nvdimm_init_nsarea(9)nd_pmem_available_dpa(9)nvdimm_allocated_dpa(9)
sign-off szn: this page is from ./drivers/nvdimm, dated October 2026, and it's the nd_pmem_max_contiguous_dpa(9) manual page. mwah π«Άβ¨
π¦ 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