libnvme(2)
π NAME π
enum nvme_cmbmsc β bestie this is the field that tells you the controller memory buffer memory space control. yes it's a whole mouthful, we're getting through it together π«Ά
β¨ SYNOPSIS β¨
enum nvme_cmbmsc {
NVME_CMBMSC_CRE_SHIFT ,
NVME_CMBMSC_CMSE_SHIFT ,
NVME_CMBMSC_CBA_SHIFT ,
NVME_CMBMSC_CRE_MASK ,
NVME_CMBMSC_CMSE_MASK
};
okay so it's an enum, it's giving very "five little constants that hold the whole thing together" energy π no cap.
π Constants π
NVME_CMBMSC_CRE_SHIFTβ the shift amount you use to get the capabilities registers enabled. that's the CRE part, she's a shifter π«NVME_CMBMSC_CMSE_SHIFTβ the shift amount to get the controller memory space enable. literally the CMSE shift, iconic, no notes π¦NVME_CMBMSC_CBA_SHIFTβ the shift amount to get the controller base address. CBA = controller base address, she's the address girlie β¨NVME_CMBMSC_CRE_MASKβ the mask to get the capabilities registers enabled. same CRE, but now she masks instead of shifts, periodt πNVME_CMBMSC_CMSE_MASKβ the mask to get the controller memory space enable. CMSE but masked this time, we love a consistent queen π
lowkey the pattern here is shift vs mask for the same two things: capabilities registers enabled and controller memory space enable, plus one lone base-address shift. that's the whole vibe check, iykyk π₯
that's the tea, bestie β slay, go shift something π
this page came out of the API Manual for libnvme, it's the enum nvme_cmbmsc page, and it's dated July 2026. mwah, see u next manpage πΈπ
π¦ 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