nvdimm_allocated_dpa(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 the dpa-resource-root and the labels together. 🫢
  • label_id β€” dpa resource name of the form pmem-<human readable uuid>. So it’s the dpa resource name shaped like pmem-<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 πŸ‘€


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