LIBNVMF_CONTEXT_SET_PERSISTENT-LIBNVME3(2)
π
libnvmf_context_set_persistent β from the libnvme API manual β¨
Okay bestie, grab a strawberry drink π because we're diving into the libnvme API manual and this one function is lowkey iconic: libnvmf_context_set_persistent. It sets the discovery controller persistence mode, and yes, that's exactly as much of a mouthful as it sounds π«Ά
πΈ NAME πΈ
libnvmf_context_set_persistent β set the discovery controller persistence mode π«
π SYNOPSIS π
int libnvmf_context_set_persistent (struct libnvmf_context *fctx , const
char *persistent );
Like, that's the whole signature. Two args, one int back. No cap. π
π¦ ARGUMENTS π¦
fctxβ the Fabrics context, aka the main character of this whole situation πpersistentβ one of"no","auto","force", and it's case-insensitive so don't stress about your caps lock fr fr π
β¨ DESCRIPTION β¨
Okay so here's the vibe check on the three modes:
"auto"β persists a Discovery Log Page entry's connection only where that entry's ownEPCSDflag (peepenum nvmf_disc_eflags) reports support for it. So it's polite, it asks first π"force"β persists regardless of whatEPCSDreports. It does not ask. It does not care. Main character energy π₯"no"β never persists. Periodt. π
π RETURN π
0on success β slay π-EINVALiffctxisNULL, or ifpersistentmatches none of the accepted values β like, it checked and none of"no","auto","force"were giving π
Heads up bestie: only those three strings (case-insensitive!) are valid. Anything else and you get -EINVAL, no exceptions π
And that's the whole page, you ate that π Signing off from the libnvme API manual, October 2026 edition β libnvmf_context_set_persistent(9), iykyk ππ§
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms