libnvme(9)
π libnvme(9) β the API Manual, bestie edition π
okay so this page is from the libnvme API Manual (yes, libnvme(9), section 9, we're living in the kernel-docs girlie era) and it's literally just one enum. one. iconic little enum. let's get into it β¨
πΈ NAME πΈ
enum nvme_lockdown_log_lsp β the Command and Feature Lockdown Log Specific Parameter field, aka the LSP field of Dword 10 in the Get Log Page Command. that's the whole vibe. no cap π«Ά
β¨ SYNOPSIS β¨
enum nvme_lockdown_log_lsp {
NVME_LOCKDOWN_LOG_LSP_SCP_SHIFT ,
NVME_LOCKDOWN_LOG_LSP_SCP_MASK ,
NVME_LOCKDOWN_LOG_LSP_CNTTS_SHIFT ,
NVME_LOCKDOWN_LOG_LSP_CNTTS_MASK ,
NVME_LOCKDOWN_LOG_LSP_ELPF
};
like look at her. five constants, zero drama (the blank line before }; is part of the aesthetic, leave it alone π
).
π Constants π
these are the members, and yes every single one is here, no skipping, we don't do that π
NVME_LOCKDOWN_LOG_LSP_SCP_SHIFTβ the shift amount that gets you the Scope (SCP). that's it, that's the job, she shifts π₯NVME_LOCKDOWN_LOG_LSP_SCP_MASKβ the mask that gets you SCP. mask on, scope out. πNVME_LOCKDOWN_LOG_LSP_CNTTS_SHIFTβ the shift amount that gets you the Contents (CNTTS). shifting so the contents can shine β¨NVME_LOCKDOWN_LOG_LSP_CNTTS_MASKβ the mask that gets you CNTTS. grab your mask, grab your contents πNVME_LOCKDOWN_LOG_LSP_ELPFβ the Enhanced Log Page Format bit, and this one's the main character fr fr. if it's set, then the Controller-scoped Enhanced log page format (seestruct nvme_lockdown_log_enhanced) is requested instead ofstruct nvme_lockdown_log. and where does the Controller Identifier go? it's specified via the Log Specific Identifier field of Command Dword 11 β that'sNVME_LOG_CDW11_LSI_SHIFTiykyk π¦
lowkey important: ELPF doesn't just tweak the format, it swaps which struct you're asking for. enhanced β regular, bestie, don't mix them up π
and that's the whole page!! tiny page, huge energy. mwah π
β sign-off, as promised: this was libnvme(9), enum nvme_lockdown_log_lsp, straight out of the API Manual, dated October 2026. go shift some bits for me, 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