libnvme(2)

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

okay bestie, welcome to the libnvme manual page, API Manual edition, and yes we are doing this together 🫢


✨ NAME ✨

enum nvme_id_ctrl_crcap β€” Power Loss Signaling Information πŸ’…


🌸 SYNOPSIS 🌸

enum nvme_id_ctrl_crcap {
    NVME_CTRL_CRCAP_RRSUP_SHIFT ,
    NVME_CTRL_CRCAP_RGIDC_SHIFT ,
    NVME_CTRL_CRCAP_RRSUP_MASK ,
    NVME_CTRL_CRCAP_RGIDC_MASK

};

πŸŽ€ Constants πŸŽ€

okay so this enum is literally just four lil' constants that help you dig values out of one single field, and I am obsessed with how tidy that is:

  • NVME_CTRL_CRCAP_RRSUP_SHIFT β€” the shift amount you use to get Reachability Reporting Supported out of the struct nvme_id_ctrl.crcap field. shift it, bestie ✨
  • NVME_CTRL_CRCAP_RGIDC_SHIFT β€” the shift amount you use to get Reachability Group ID Changeable out of the struct nvme_id_ctrl.crcap field.
  • NVME_CTRL_CRCAP_RRSUP_MASK β€” the mask 🎭 you use to get Reachability Reporting Supported out of the struct nvme_id_ctrl.crcap field.
  • NVME_CTRL_CRCAP_RGIDC_MASK β€” the mask 🎭 you use to get Reachability Group ID Changeable out of the struct nvme_id_ctrl.crcap field.
two shifts, two masks, one field. it's giving main character energy, no cap 🌈

and that's the whole vibe, bestie β€” this lil' page lived in the API Manual for libnvme(2), dated July 2026, and now it lives in your brain πŸ’– go forth and mask responsibly πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from