libnvme(9)
π libnvme(9) β the API manual, bestie edition π
okay so this is a page from the libnvme API manual (yes, that libnvme, the NVMe one π) and honestly? it's a short one. we're just talking about one lil enum that helps you dig into the power loss signaling info. tiny page, big "i know what i'm doing" energy. let's get into it β¨
π NAME π
enum nvme_id_ctrl_crcap β Power Loss Signaling Information
fr fr that's the whole name. she's a little enum and she's here to help you read the crcap field. iconic behavior honestly π
πΈ 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
};
look at her. four constants, no drama, absolutely slaying the "i'm a bitfield helper" aesthetic π«Ά
π¦ Constants π¦
okay so every single one of these is about pulling something out of the struct nvme_id_ctrl.crcap field β that's the vibe, that's the assignment. two of them get you a shift amount, two of them get you a mask. classic bitfield situation, no cap π
NVME_CTRL_CRCAP_RRSUP_SHIFTβ the shift amount you use to get the Reachability Reporting Supported out of thestruct nvme_id_ctrl.crcapfield. shift it, then look at it, periodt β¨NVME_CTRL_CRCAP_RGIDC_SHIFTβ the shift amount you use to get the Reachability Group ID Changeable out of thestruct nvme_id_ctrl.crcapfield. same deal, different bit πNVME_CTRL_CRCAP_RRSUP_MASKβ the mask that gets you the Reachability Reporting Supported from thestruct nvme_id_ctrl.crcapfield. mask on, bestie πNVME_CTRL_CRCAP_RGIDC_MASKβ the mask that gets you the Reachability Group ID Changeable from thestruct nvme_id_ctrl.crcapfield. yes ma'am, that's the one π
lowkey the pattern here is: one shift + one mask per thing, and the "thing" is always living inside struct nvme_id_ctrl.crcap. that's it, that's the whole page π§
and that's the page!! originally brought to you by libnvme(9) / enum nvme_id_ctrl_crcap, dated October 2026 β mwah, thanks for reading, go read your controller's crcap field responsibly πβ¨π
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms