table of contents
| libnvme_get_nsid(9) | libnvme API manual | libnvme_get_nsid(9) |
NAME¶
libnvme_get_nsid - Retrieve the NSID from a namespace file descriptor
SYNOPSIS¶
int libnvme_get_nsid (struct libnvme_transport_handle *hdl , __u32 *nsid );
ARGUMENTS¶
DESCRIPTION¶
This should only be sent to namespace handles, not to controllers. The kernel's interface returns the nsid as the return value. This is unfortunate for many architectures that are incapable of allowing distinguishing a namespace id > 0x80000000 from a negative error number.
RETURN¶
0 if nsid was set successfully or negative error code otherwise.
| libnvme_get_nsid | July 2026 |