nd_pmem_available_dpa(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🌈


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