libnvme(2)

✨ NAME ✨

enum nvme_lockdown_scope_contents β€” the lockdown log shift and mask squad, aka the little bit-twiddling besties you need when you're poking at the NVMe Lockdown Log πŸ’–

This one lives in the libnvme API manual, page 2, so like… yeah, she's official.


🫢 SYNOPSIS 🫢

enum nvme_lockdown_scope_contents {
    NVME_LOCKDOWN_SS_SHIFT ,
    NVME_LOCKDOWN_SS_MASK ,
    NVME_LOCKDOWN_CS_SHIFT ,
    NVME_LOCKDOWN_CS_MASK

};

okay so it's an enum, bestie. Four members, all of them are just numeric constants doing shift-and-mask duties. No cap, that's the whole vibe. πŸ’…


🌸 Constants 🌸

Each one of these is a lil constant with main character energy. Here's the roster:

  • NVME_LOCKDOWN_SS_SHIFT β€” the Lockdown log scope select Shift. Yep, the shift you use to get at the scope select bits. πŸŽ€
  • NVME_LOCKDOWN_SS_MASK β€” the Lockdown log scope select Mask. Your mask for the scope select field, periodt. πŸ¦‹
  • NVME_LOCKDOWN_CS_SHIFT β€” the Lockdown log contents Shift. Shift for the log contents bits, iconic. ⭐
  • NVME_LOCKDOWN_CS_MASK β€” the Lockdown log contents Mask. Mask for the log contents field. Slay. πŸ”₯
ngl, this is a shift + mask duo situation: shifts move the bits into place, masks keep only the bits you want. That's the entire job description, fr fr. πŸ™ˆ

and that's the whole page, bestie β€” short, sweet, and lowkey essential if you're decoding a Lockdown Log. Go forth and mask responsibly. πŸ‘‘

πŸ’– ✨ πŸŽ€ this was enum nvme_lockdown_scope_contents from the libnvme API Manual (topics 2), dated July 2026 β€” mwah, thanks for reading, love u, byeee πŸŽ€ ✨ πŸ’–

πŸ“¦ where this page comes from