libnvme(9)
π libnvme(9) β the one about the lockdown log, bestie
okay so real talk, this is libnvme(9), the API manual, and today's main character is an enum. yes an enum. don't scroll, it's actually important π«Ά
β¨ NAME β¨
enum nvme_lockdown_log_enhanced_cfia β literally the Command and Feature Lockdown Log Page, Enhanced edition, specifically the Command and Feature Identifier Attributes part (CFIA for short, iykyk) πΈ
π SYNOPSIS π
here's the whole vibe, no cap:
enum nvme_lockdown_log_enhanced_cfia {
NVME_LOCKDOWN_LOG_ENHANCED_CFIA_SS_SHIFT ,
NVME_LOCKDOWN_LOG_ENHANCED_CFIA_SS_MASK ,
NVME_LOCKDOWN_LOG_ENHANCED_CFIA_CS_SHIFT ,
NVME_LOCKDOWN_LOG_ENHANCED_CFIA_CS_MASK
};
four constants, that's the whole squad π
π Constants π
NVME_LOCKDOWN_LOG_ENHANCED_CFIA_SS_SHIFTβ the shift amount you use to get the Scope Selected (SS). that's it, that's the job β¨NVME_LOCKDOWN_LOG_ENHANCED_CFIA_SS_MASKβ the mask to getSS. masking era fr fr πNVME_LOCKDOWN_LOG_ENHANCED_CFIA_CS_SHIFTβ the shift amount to get the Contents Selected (CS). shift it, slay it πNVME_LOCKDOWN_LOG_ENHANCED_CFIA_CS_MASKβ the mask to getCS. last one, and she ate π
lowkey the pattern here is so satisfying: shift + mask forSS, shift + mask forCS. iconic symmetry, no notes π¦
and that's the whole page, bestie β four constants and a little bit of bit-manipulation main character energy. go mask something π
signing off from the libnvme(9) API Manual, October 2026 edition β stay glowing, stay shifted β¨π
π¦ 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