libnvme_ctrl_get_serial-libnvme3(2)

libnvme_ctrl_get_serial-libnvme32

Get serial.

Usage

int libnvme_ctrl_get_serial (const struct libnvme_ctrl *p , const char **serial , const char *dflt );

Arguments

p

The struct libnvme_ctrl instance to query.

serial

Where to store the value on success.

dflt

Value to store in serial on failure.

Return

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

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.