libnvme(9)
π libnvme(9) β the API Manual, bestie edition π
okay so real talk, this page lives in the libnvme manual (section 9, kernel-adjacent cutie energy), and it's literally just one enum. one. iconic minimalism. let's get into it β¨
β¨ NAME β¨
enum nvme_ns_write_protect_cfg β Write Protection - Write Protection State
likeβ¦ the state of write protection. that's the whole vibe. no notes. π¦
πΈ SYNOPSIS πΈ
enum nvme_ns_write_protect_cfg {
NVME_NS_WP_CFG_NONE ,
NVME_NS_WP_CFG_PROTECT ,
NVME_NS_WP_CFG_PROTECT_POWER_CYCLE ,
NVME_NS_WP_CFG_PROTECT_PERMANENT
};
four constants, zero drama (wellβ¦ mostly, one of them is permanent, we'll get there). copy it exactly, bestie, commas and all π
β Constants β
okay so here's the whole cast of characters, main character energy each one:
NVME_NS_WP_CFG_NONEβ No Write Protect. the free-spirit option, nothing is locked, everything is possible, live ur life ποΈNVME_NS_WP_CFG_PROTECTβ Write Protect. it's protected. periodt. πNVME_NS_WP_CFG_PROTECT_POWER_CYCLEβ Write Protect Until Power Cycle. protection with an expiration date β power cycle it and ur free again β‘NVME_NS_WP_CFG_PROTECT_PERMANENTβ Permanent Write Protect. like the name says, permanent β no cap, this one does not come off when you reboot π read that twice before you pick it, fr fr π
lowkey a whole mood: four states, no flags, no environment variables, no exit statuses, no bugs listed, no SEE ALSO. the page said "that's it, that's the enum" and honestly? respect π«Ά
and that's the page!! mwah π this drop is from the API Manual, dated October 2026, covering enum nvme_ns_write_protect_cfg in libnvme(9) β slay, go protect some namespaces responsibly, ily, bye π§π
π¦ 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