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

hdl Transport handle

nsid
    User pointer to namespace id

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.