1nvme_get_nsid(9) libnvme API manual nvme_get_nsid(9)
2
3
4
6 nvme_get_nsid - Retrieve the NSID from a namespace file descriptor
7
9 int nvme_get_nsid (int fd , __u32 *nsid );
10
12 fd File descriptor of nvme namespace
13
14 nsid User pointer to namespace id
15
17 This should only be sent to namespace handles, not to controllers. The
18 kernel's interface returns the nsid as the return value. This is unfor‐
19 tunate for many architectures that are incapable of allowing distin‐
20 guishing a namespace id > 0x80000000 from a negative error number.
21
23 0 if nsid was set successfully or -1 with errno set otherwise.
24
25
26
27October 2023 nvme_get_nsid nvme_get_nsid(9)