libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’– NAME πŸ’–

okay so bestie, welcome to libnvme(9) β€” that's the API Manual vibe, we're in the big-kid docs now 🫢 β€” and this page is all about enum nvme_id_ctrl_rmdca, aka Restore Manufacturing Configuration Attributes ✨ like yes it's a long name, no I will not be shortening it, we respect the enum in this house πŸ’…


🌸 SYNOPSIS 🌸

here's the whole squad, literally every member, no cap:

enum nvme_id_ctrl_rmdca {
    NVME_CTRL_RMDCA_RDSCS_SHIFT ,
    NVME_CTRL_RMDCA_RDSCS_MASK ,
    NVME_CTRL_RMDCA_RDNCS_SHIFT ,
    NVME_CTRL_RMDCA_RDNCS_MASK ,
    NVME_CTRL_RMDCA_RDCCS_SHIFT ,
    NVME_CTRL_RMDCA_RDCCS_MASK

};

six constants, all iconic, all essential, we love a complete set πŸ‘‘


πŸŽ€ Constants πŸŽ€

okay so these are the little shift-y and mask-y besties that let you dig the actual bits out of the struct nvme_id_ctrl.rmdca field β€” think of it as a scavenger hunt but the treasure is configuration flags πŸ¦‹

  • NVME_CTRL_RMDCA_RDSCS_SHIFT β€” the shift amount you use to pull out the Restore Default NVM Subsystem Configuration Supported (RDSCS) from the struct nvme_id_ctrl.rmdca field. shift it, slay it, read it πŸ’«
  • NVME_CTRL_RMDCA_RDSCS_MASK β€” the mask that gets you RDSCS. masking is self-care fr fr 🌸
  • NVME_CTRL_RMDCA_RDNCS_SHIFT β€” the shift amount that gets you the Restore Default Namespace Configuration Supported (RDNCS). yes it's a different acronym, yes it matters, don't mix them up bestie πŸ™ˆ
  • NVME_CTRL_RMDCA_RDNCS_MASK β€” the mask that gets you RDNCS. periodt ✨
  • NVME_CTRL_RMDCA_RDCCS_SHIFT β€” the shift amount that gets you the Restore Default Capacity Management Configuration Supported (RDCCS). capacity management said main character energy πŸ‘‘
  • NVME_CTRL_RMDCA_RDCCS_MASK β€” the mask that gets you RDCCS. last one, and she ate πŸ’…
ngl the pattern is literally: SHIFT for the shift amount, MASK for the mask, three pairs, three capabilities β€” RDSCS, RDNCS, RDCCS. lowkey elegant, highkey useful 🧚

okay that's the whole page, you made it to the end, I'm obsessed with you πŸ₯Ή so real quick, the official receipts: this was the enum nvme_id_ctrl_rmdca page from libnvme(9), dated October 2026 β€” go forth and shift those bits responsibly, bestie, mwah πŸ’œπŸŽ€

πŸ“¦ where this page comes from