namespace_update_uuid(9)
π namespace_update_uuid(9) β like, the Kernel API Manual, bestie β¨
Okay so real talk, this is a page from the Kernel API Manual and it's all about namespace_update_uuid β the function that checks whether a uuid is actually unique and whether we're lowkey "renaming" something. Yes, "renaming" in quotes, the kernel is being mysterious about it, we love that for us π
πΈ NAME πΈ
namespace_update_uuid β check for a unique uuid and whether we're "renaming" π«
β¨ SYNOPSIS β¨
int namespace_update_uuid (struct nd_region *nd_region , struct device
*dev , uuid_t *new_uuid , uuid_t **old_uuid );
That's the whole vibe check right there, no cap π₯
π¦ ARGUMENTS π¦
nd_regionβ the parent region, so we can update all the dimms in the set π«Ά like it's the mother of the group chat and everyone's getting the newsdevβ namespace type, and it's there for generating thelabel_idπnew_uuidβ the incoming uuid, the fresh one, the new main character πold_uuidβ a reference to the uuid storage location in the namespace object π it's giving "keep the receipts" iykyk
π RETURN π
0 on success, or -errno on error π periodt.
π§ SEE ALSO π§
Kernel file ./drivers/nvdimm/namespace_devs.c β plus these iconic little references, go read them fr fr:
nd_is_uuid_unique(9)shrink_dpa_allocation(9)space_valid(9)grow_dpa_allocation(9)create_namespace_pmem(9)
π obligatory note bestie: the return is literally "0 on success on -errno on error" β so yes, success is0and errors come back as-errno. Keep that energy.
That's the whole thinggg β¨ This little love letter lives in ./drivers/nvdimm, it's from October 2026, and it ships as part of the Kernel API Manual β namespace_update_uuid(9), slay π
π
π¦ 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