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 thestruct nvme_id_ctrl.crcapfield. shift it, bestie β¨NVME_CTRL_CRCAP_RGIDC_SHIFTβ the shift amount you use to get Reachability Group ID Changeable out of thestruct nvme_id_ctrl.crcapfield.NVME_CTRL_CRCAP_RRSUP_MASKβ the mask π you use to get Reachability Reporting Supported out of thestruct nvme_id_ctrl.crcapfield.NVME_CTRL_CRCAP_RGIDC_MASKβ the mask π you use to get Reachability Group ID Changeable out of thestruct nvme_id_ctrl.crcapfield.
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
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms