libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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