libnvme_ctrl_get_cntrltype-libnvme32
Get cntrltype.
Usage
int libnvme_ctrl_get_cntrltype (const struct libnvme_ctrl *p , const char **cntrltype , const char *dflt );
Arguments
p
|
The struct libnvme_ctrl instance to query. |
|---|---|
cntrltype
|
Where to store the value on success. |
dflt
|
Value to store in cntrltype on failure. |
Return
0 on success, -ENOENT if the attribute does not exist, or a negative errno on failure.