grow_dpa_allocation(9)
grow_dpa_allocation(9) π β Kernel API Manual energy
okay bestie, gather round π«Ά weβre in the Kernel API Manual and this page is all about grow_dpa_allocation(9). No cap, itβs the βfor each dimm allocate n bytes for @label_idβ situation, and yes thatβs NAME doing its thing. π
β¨ SYNOPSIS β¨
int grow_dpa_allocation (struct nd_region *nd_region , struct
nd_label_id *label_id , resource_size_t n );
π ARGUMENTS π
nd_regionβ the set of dimms to allocatenmore bytes from. Thatβs the region bestie π§label_idβ unique identifier for the namespace consuming this dpa range. Iconic little namespace fingerprint β¨nβ number of bytes per-dimm to add to the existing allocation. The amount, the whole amount, and nothing but the amount π₯
π DESCRIPTION π
okay so the function assumes resources are ordered β thatβs the baseline vibe, periodt.
For BLK regions, it first consumes BLK-only available DPA free space, then consumes PMEM-aliased DPA space starting at the highest DPA. Slay, orderly little allocation goblin π
For PMEM regions, it starts allocations from the start of an interleave set and ends at the first BLK allocation or the end of the interleave set, whichever comes first. Thatβs the boundary lore, iykyk π¦
π₯ RETURN π₯
The page says 0 on success on -errno on error. So: success gives you 0, error gives you -errno, and the manpage keeps it blunt π
π¦ SEE ALSO π¦
- Kernel file
./drivers/nvdimm/namespace_devs.c nd_is_uuid_unique(9)shrink_dpa_allocation(9)space_valid(9)namespace_update_uuid(9)create_namespace_pmem(9)
mwah π thatβs the whole page from ./drivers/nvdimm, dated October 2026 β grow_dpa_allocation(9) signing off, bestie π«Άβ¨
π¦ 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