libnvme\_subsystem\_get\_model(9) libnvme API manual libnvme\_subsystem\_get\_model(9)

# [NAME](#NAME)

libnvme\_subsystem\_get\_model - Get model.

# [SYNOPSIS](#SYNOPSIS)

**int libnvme\_subsystem\_get\_model** **(const struct libnvme\_subsystem \*p ,** **const char \*\*model ,** **const char \*dflt );**

# [ARGUMENTS](#ARGUMENTS)

[p](#p)

The *struct libnvme\_subsystem* instance to query.

[model](#model)

Where to store the value on success.

[dflt](#dflt)

Value to store in *model* on failure.

# [RETURN](#RETURN)

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

libnvme\_subsystem\_get\_model October 2026

---

Document: libnvme_subsystem_get_model-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
