1nvme_get_nsid(9)              libnvme API manual              nvme_get_nsid(9)
2
3
4

NAME

6       nvme_get_nsid - Retrieve the NSID from a namespace file descriptor
7

SYNOPSIS

9       int nvme_get_nsid (int fd , __u32 *nsid );
10

ARGUMENTS

12       fd          File descriptor of nvme namespace
13
14       nsid        User pointer to namespace id
15

DESCRIPTION

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

RETURN

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)
Impressum