libnvme_get_nsid-libnvme32
Retrieve the nsid from a namespace file descriptor
Usage
int libnvme_get_nsid (struct libnvme_transport_handle *hdl , __u32 *nsid );
Arguments
hdl
|
Transport handle |
|---|---|
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 negative error code otherwise.