libnvme(2)

πŸ’– libnvme(2) β€” API Manual πŸ’–

okay bestie, buckle up, we're reading the libnvme manual together and honestly? it's giving structured. πŸ¦‹


✨ NAME ✨

enum nvme_id_ctrl_rpmbs β€” this field is the lil vibe check on whether the controller supports one or more Replay Protected Memory Blocks, pulled straight from &struct nvme_id_ctrl.rpmbs. πŸŽ€


✨ SYNOPSIS ✨

enum nvme_id_ctrl_rpmbs {
    NVME_CTRL_RPMBS_NR_UNITS ,
    NVME_CTRL_RPMBS_AUTH_METHOD ,
    NVME_CTRL_RPMBS_TOTAL_SIZE ,
    NVME_CTRL_RPMBS_ACCESS_SIZE

};

like. that's the whole enum. no cap, that's it. 🫢


✨ Constants ✨

these four are all masks, and they all live to do one job: fish a specific value out of the field. obsessed. πŸ’…

  • NVME_CTRL_RPMBS_NR_UNITS β€” a mask that gets you the value of the Number of RPMB Units. πŸ”’
  • NVME_CTRL_RPMBS_AUTH_METHOD β€” a mask that gets you the value of the Authentication Method. πŸ”
  • NVME_CTRL_RPMBS_TOTAL_SIZE β€” a mask that gets you the value of Total Size. πŸ“
  • NVME_CTRL_RPMBS_ACCESS_SIZE β€” a mask that gets you the value of Access Size. 🎯
reminder bestie: these are masks. you AND them with the field, you don't just read them raw. mask behavior is the whole point, periodt. πŸ’€

and that's the whole page, we ate. πŸ“

kisses from July 2026, this was enum nvme_id_ctrl_rpmbs dropping out of the libnvme(2) section, main character energy only. πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from