libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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 (see struct nvme_lockdown_log_enhanced) is requested instead of struct nvme_lockdown_log. and where does the Controller Identifier go? it's specified via the Log Specific Identifier field of Command Dword 11 β€” that's NVME_LOG_CDW11_LSI_SHIFT iykyk πŸ¦‹
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