libnvme(9)
π libnvme(9) β API Manual, bestie edition
Okay so this is a page straight out of the libnvme API manual β yes, that libnvme(9), the manual name is literally in the corner and I'm putting it right here near the top so you're not confused. It's a tiny one today: one enum, three constants, zero drama. Let's go π«Ά
β¨ NAME β¨
enum libnvme_sed_lock_state β the lock state of a locking range. That's it, that's the whole vibe. It's giving "small but crucial" π₯
π¦ SYNOPSIS π¦
enum libnvme_sed_lock_state {
LIBNVME_SED_LOCK_RO ,
LIBNVME_SED_LOCK_RW ,
LIBNVME_SED_LOCK_LK
};
Not me presenting the enum like it's a lineup π Three members, that's the whole squad:
π Constants π
So these are the three states, and honestly you just need to know which one locks what. Here's the tea β:
LIBNVME_SED_LOCK_ROβ read-only, which means writes are locked. You can look, you cannot touch. Window shopping energy πLIBNVME_SED_LOCK_RWβ read-write, and the range is unlocked. Full access, main character permissions, no cap β¨LIBNVME_SED_LOCK_LKβ reads and writes are locked. Like, both. Everything. Locked locked. Periodt π
Note bestie:LIBNVME_SED_LOCK_ROlocks only the writes,LIBNVME_SED_LOCK_LKlocks reads and writes β do not mix those two up, iykyk π
πΈ Sign-off πΈ
And that's the page! This icon was living in the libnvme(9) API Manual, under enum libnvme_sed_lock_state, dated October 2026 β so screenshot the date if you need it for whatever grown-up reason you need it for π Bye bestie, go lock some ranges responsibly π
π¦ 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