libnvme(9)
π libnvme(9) β literally the API Manual, bestie
Okay so picture this: you're deep in the libnvme API Manual (yes, that libnvme, section 9, iykyk) and you stumble into this little enum. It's not huge, it's not scary, it's just four constants doing their thing. Let's get into it π«Ά
β¨ NAME β¨
enum nvme_id_ctrl_ensa β Exported NVM Subsystem Attributes. That's it, that's the whole vibe. It's giving "small but essential" π
πΈ SYNOPSIS πΈ
enum nvme_id_ctrl_ensa {
NVME_CTRL_ENSA_ENSMS_SHIFT ,
NVME_CTRL_ENSA_ENSTS_SHIFT ,
NVME_CTRL_ENSA_ENSMS_MASK ,
NVME_CTRL_ENSA_ENSTS_MASK
};
Four members, no cap. Two shifts, two masks, and they come in exactly that order β SHIFT, SHIFT, MASK, MASK. Copy it exactly like that, bestie, don't get creative π
π Constants π
These are the four icons of this enum, and each one has one job. Lock in π₯
NVME_CTRL_ENSA_ENSMS_SHIFTβ the shift amount you use to get the Exported NVM Subsystem Support Migration Support. She's the "how far do I slide over" girlie β¨NVME_CTRL_ENSA_ENSTS_SHIFTβ the shift amount for the Exported NVM Subsystem Template Support. Same energy, different field πΈNVME_CTRL_ENSA_ENSMS_MASKβ the mask for the Exported NVM Subsystem Support Migration Support. Use this to isolate the bits once you've shifted πNVME_CTRL_ENSA_ENSTS_MASKβ the mask for the Exported NVM Subsystem Template Support. Mask bestie, doing mask things π
ngl the pattern here is so clean:ENSMSpairs with Support Migration Support,ENSTSpairs with Template Support. Shift to move the bits, mask to keep them. Main character energy fr fr π
That's the whole page, bestie β nothing hiding in the corners. Go forth and bit-twiddle responsibly π¦
mwah π this was enum nvme_id_ctrl_ensa from the libnvme(9) API Manual, dated October 2026 β see you in the next one, slay β¨π
π¦ 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