LIBNVMF_CONTEXT_GET_PERSISTENT-LIBNVME3(2)
π libnvmf_context_get_persistent β libnvme API manual, section 9 π
okay so bestie, welcome to section 9 of the libnvme API manual β¨ this one's a tiny lil function with main character energy and honestly? it's giving "short but iconic." let's get into it π
πΈ NAME πΈ
libnvmf_context_get_persistent β literally just gets the discovery controller persistence mode. that's it. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
const char * libnvmf_context_get_persistent (const struct
libnvmf_context *fctx );
look at her. one argument. zero drama. periodt π
π§ ARGUMENTS π§
fctxβ the Fabrics context π«Ά like, the whole Fabrics situation, that's what you're handing her.
π RETURN π
so here's what she gives you back, and it's genuinely one of three little strings (or a whole NULL, which we'll get to, don't worry π):
"no"β if it was explicitly configured that way"auto"β if it was explicitly configured that way"force"β if it was explicitly configured that way
and then there's the plot twist:
NULLβ returned if it wasn't explicitly configured π and bestie, listen, this is the important part: thatNULLbehaves the same as"no"when it's applied to a live connection, or iffctxisNULL.
so likeβ¦ no cap, NULL is lowkey just "no" in a trench coat. π but fr fr, if you're checking the return value yourself, handle it properly β those are the three strings, or NULL, exactly as documented. β
π a lil note on the nulls π
iffctxisNULL, you don't get a crash course in chaos β you get the same behaviour as"no". the manpage says it, so I'm saying it. π₯
π that's the whole page, bestie π
genuinely one of the shortest manpages you'll ever read and honestly? she ate. short, useful, no filler. iykyk π
this little masterpiece lives in the libnvme API manual, dated October 2026 β so yeah, mark your calendar, she's timeless πβ¨πΈπ
slay responsibly and always check your return values π
π¦ 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