nvme_ns_get_uuid(2)

nvme_ns_get_uuid(2) πŸ’–

okay bestie, welcome to the libnvme API manual</> β€” this little cutie right here lives in section 2, and it's about to hand you a namespace's UUID like it's passing you a note in class πŸŽ€


✨ NAME ✨

nvme_ns_get_uuid β€” the UUID of a namespace, babes. that's it. that's the whole job πŸ¦‹


✨ SYNOPSIS ✨

void nvme_ns_get_uuid (nvme_ns_t n , unsigned char out[NVME_UUID_LEN] );

look at her. no return value, just vibes and a copy operation. flawless behavior honestly πŸ’…


✨ ARGUMENTS ✨

  • n β€” the namespace instance itself 🫢 like, your actual nvme_ns_t bestie that you want the ID from.
  • out β€” a buffer for the UUID 🌸 it's unsigned char and it's NVME_UUID_LEN wide, so bring the right size or don't come at all.

✨ DESCRIPTION ✨

Copies the namespace's uuid into out. periodt. πŸ’–

ngl it is genuinely that simple β€” you give it a namespace, it gives you back the UUID, written straight into your out buffer. no cap, no hidden tricks, no secret return code to check 😌

🌈 a lil sign-off 🌈

this page was born in July 2026, it ships as part of the libnvme API manual</>, and it answers to the name nvme_ns_get_uuid in section 2 β€” main character energy, honestly πŸ‘‘ go get that UUID bestie, ily, bye πŸ’œπŸ§š

πŸ“¦ where this page comes from