libnvmf\_context\_set\_persistent(9) libnvme API manual libnvmf\_context\_set\_persistent(9)

# [NAME](#NAME)

libnvmf\_context\_set\_persistent - Set the discovery controller persistence mode

# [SYNOPSIS](#SYNOPSIS)

**int libnvmf\_context\_set\_persistent** **(struct libnvmf\_context \*fctx ,** **const char \*persistent );**

# [ARGUMENTS](#ARGUMENTS)

[fctx](#fctx)

Fabrics context

[persistent](#persistent)

One of "no", "auto", "force" (case-insensitive)

# [DESCRIPTION](#DESCRIPTION)

"auto" persists a Discovery Log Page entry's connection only where that entry's own EPCSD flag (see *enum nvmf\_disc\_eflags*) reports support for it; "force" persists regardless of what EPCSD reports; "no" never persists.

# [RETURN](#RETURN)

0 on success, -EINVAL if *fctx* is NULL or *persistent* matches none of the accepted values.

libnvmf\_context\_set\_persistent October 2026

---

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