nd_pmem_max_contiguous_dpa(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 of dpa-resource-root + labels. the little container situation, iykyk ✨

πŸ”₯ RETURN πŸ”₯

  • 0 if there is an alignment error
  • otherwise, the max unallocated dpa range

so yeah: alignment error? 0. otherwise? max unallocated dpa range. slay πŸ’€βœ¨


πŸ’œ SEE ALSO πŸ’œ

go read these too, bestie:


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