Reference

libnvme_ctrl_get_model-libnvme3(2)

Get model.

NAME

libnvme_ctrl_get_model - Get model.

SYNOPSIS

int libnvme_ctrl_get_model (const struct libnvme_ctrl *p , const char **model , const char *dflt );

ARGUMENTS

p

The struct libnvme_ctrl instance to query.

model

Where to store the value on success.

dflt

Value to store in model on failure.

RETURN

0 on success, -ENOENT if the attribute does not exist, or a negative errno on failure.