nvme_identi...ated_ns_list(2)
π nvme_identify_allocated_ns_list β bestie edition β¨
okay so this lil function lives in the libnvme API manual and it's literally called nvme_identify_allocated_ns_list, and yes the man page header tried to abbreviate it as nvme_identi...ated_ns_list(2) bc it's a whole mouthful, but we're gonna say the whole thing, periodt. π
β¨ NAME β¨
nvme_identify_allocated_ns_list β Retrieves allocated namespace id list π¦
πΈ SYNOPSIS πΈ
int nvme_identify_allocated_ns_list (int fd , __u32 nsid , struct
nvme_ns_list *list );
like. look at her. three args, one int coming back. iconic.
π ARGUMENTS π
fdβ the file descriptor of your nvme device, bestie. this is your whole ticket in. ποΈnsidβ Return namespaces greater than this identifier. yes, greater than. strict vibes only, no equals allowed. πlistβ User space destination address to transfer the data. that's where the goodies land. β¨
π«Ά DESCRIPTION π«Ά
A list of 1024 namespace IDs is returned to the host containing NSIDs in increasing order that are greater than the value specified in the Namespace Identifier (nsid) field of the command. so it's sorted, it's ascending, and it's strictly above your nsid. no cap. π₯
See struct nvme_ns_list for the definition of the returned structure β go look at the struct if you wanna know what shape the tea comes in. π
π RETURN π
The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise. so like: either you get a real status back, or you get a <red>-1</red> and errno is doing the talking. π«
lowkey important:<red>-1</red>alone tells you nothing β the actual story is inerrno, so check it, bestie. π
and that's the whole page!! π
sign-off time: this lil beauty comes from the libnvme API manual, dated July 2026, and the footer was out here doing the absolute most with nvme_identify_allocated_nsnvme_identi...ated_ns_list(2) (yes it ran the title and the footer together with zero space, we don't judge, we just notice π). anyway β go read that namespace list, you absolute main character. πβ¨π¦
π¦ 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