nvme_mi_adm...tive_ns_list(2)
π NAME π
nvme_mi_admin_identify_active_ns_list β bestie, this one does an Admin identify for an active namespace list β¨
(also hi, you're reading the libnvme API manual, welcome to the group chat π«Ά)
β¨ SYNOPSIS β¨
int nvme_mi_admin_identify_active_ns_list (nvme_mi_ctrl_t ctrl , __u32
nsid , struct nvme_ns_list *list );
okay so that's the whole vibe right there, no notes π
π ARGUMENTS π
ctrlβ the Controller we're handing this identify command to. like, this is who's doing the work πͺnsidβ the Namespace ID, and it's the one that says where the list starts. Not where it ends, where it starts, okay? πlistβ the list data we're populating. it's empty rn and we're about to fill it up, glow-up incoming πΈ
π DESCRIPTION π
So we're performing an Identify command, specifically for the active namespace list β and it starts with IDs that are greater than or equal to nsid π¦
If you want the literal start of the list? Pass NVME_NSID_NONE for nsid. That's the move, bestie, do not skip that π
Now the part that's giving β¨trust issuesβ¨ if you don't read it:
It will return an error if the length of the response data (from the controller) is not a fullNVME_IDENTIFY_DATA_SIZE. But the slay here is that on success,listwill be fully populated. no half-finished vibes, we don't do that π
See: struct nvme_ns_list π
π RETURN π
- The
nvmecommand status if a response was received β go peek atenum nvme_status_fieldfor the deets, iykyk - or
-1witherrnoset, in literally every other case π
π SEE ALSO π
girl. it's the same function, there's no other page here π this one's a solo main character
okay that's the whole page, periodt π this was the libnvme API manual, dated July 2026 β mwah, go populate your namespace list, you're gonna ate π β¨π¦
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms