libnvme(9)
π libnvme(9) β ok bestie, let's talk about this enum
So you opened the libnvme(9) API Manual page and it's justβ¦ an enum. A whole little enum. And honestly? It ate. Let's get into it π
β¨ NAME β¨
enum nvme_feat_nswpcfg_state β the Write Protection - Write Protection State situation. That's the whole vibe: it's the list of states that NVMe namespace write protection can be in. No cap, that's literally it π¦
πΈ SYNOPSIS πΈ
Here's the whole thing, exactly as it lives in the header, bestie β don't let anyone tell you it's more complicated than this:
enum nvme_feat_nswpcfg_state {
NVME_FEAT_NS_NO_WRITE_PROTECT ,
NVME_FEAT_NS_WRITE_PROTECT ,
NVME_FEAT_NS_WRITE_PROTECT_PWR_CYCLE ,
NVME_FEAT_NS_WRITE_PROTECT_PERMANENT
};
Look at her. Four constants, all iconic, all with a little trailing comma situation before the brace. We respect it π
π Constants π
Okay so these are the four states you can be in, and each one has its own energy. Let me introduce you π
NVME_FEAT_NS_NO_WRITE_PROTECTβ the main character state: No Write Protect. Nothing's locked, everything's writable, live your life πNVME_FEAT_NS_WRITE_PROTECTβ Write Protect. Yep. She's protected. The writes are not coming through, iykyk π₯NVME_FEAT_NS_WRITE_PROTECT_PWR_CYCLEβ Write Protect Until Power Cycle. Temporarily locked down β a power cycle and she's free again. It's giving "brb gotta reboot my boundaries" βNVME_FEAT_NS_WRITE_PROTECT_PERMANENTβ Permanent Write Protect. The forever one. Lowkey scary, highkey serious β this state does not undo itself π
fr fr, read the last two names carefully before you go flipping states around. They are not the same vibe and the manual is very clear about that π
And that's the page, bestie! π«Ά Straight from the enum nvme_feat_nswpcfg_state section of the libnvme(9) API Manual, dated October 2026 β catch you on the next manpage, mwah πβ¨π
π¦ 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