libnvme\_subsystem\_set\_serial(9) libnvme API manual libnvme\_subsystem\_set\_serial(9)

# [NAME](#NAME)

libnvme\_subsystem\_set\_serial - Set serial.

# [SYNOPSIS](#SYNOPSIS)

**void libnvme\_subsystem\_set\_serial** **(struct libnvme\_subsystem \*p ,** **const char \*serial );**

# [ARGUMENTS](#ARGUMENTS)

[p](#p)

The *struct libnvme\_subsystem* instance to update.

[serial](#serial)

New string; a copy is stored. Pass NULL to clear.

libnvme\_subsystem\_set\_serial October 2026

---

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