nvme_get_nsid2
Retrieve the nsid from a namespace file descriptor
Usage
int nvme_get_nsid (int fd , __u32 *nsid );
Arguments
fd
|
File descriptor of nvme namespace |
|---|---|
nsid
|
User pointer to namespace id |
Overview
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 -1 with errno set otherwise.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.