libnvme(2)

✨ NAME ✨

okay so bestie, this is enum nvme_cmbswtp β€” aka the field that tells you the controller memory buffer sustained write throughput. yes it's a mouthful, no we don't make the rules πŸ’…

This page lives in the libnvme manual, section 2 (iykyk), so if you ever need to cite it: that's the vibe.


πŸ¦‹ SYNOPSIS πŸ¦‹

enum nvme_cmbswtp {
    NVME_CMBSWTP_CMBSWTU_SHIFT ,
    NVME_CMBSWTP_CMBSWTV_SHIFT ,
    NVME_CMBSWTP_CMBSWTU_MASK ,
    NVME_CMBSWTP_CMBSWTV_MASK ,
    NVME_CMBSWTP_CMBSWTU_B ,
    NVME_CMBSWTP_CMBSWTU_1K ,
    NVME_CMBSWTP_CMBSWTU_1M ,
    NVME_CMBSWTP_CMBSWTU_1G

};

πŸ’– CONSTANTS πŸ’–

the whole squad, one by one, no skips:

  • NVME_CMBSWTP_CMBSWTU_SHIFT β€” the shift amount you need to pull out the CMB sustained write throughput units. shifting is the moment ✨
  • NVME_CMBSWTP_CMBSWTV_SHIFT β€” the shift amount you need to pull out the CMB sustained write throughput value. same energy, different snack.
  • NVME_CMBSWTP_CMBSWTU_MASK β€” the mask that grabs you the CMB sustained write throughput units. masking = the glamour of bitwise ops.
  • NVME_CMBSWTP_CMBSWTU_MASK... no wait 😭 β€” NVME_CMBSWTP_CMBSWTV_MASK β€” the mask that grabs you the CMB sustained write throughput value itself. iconic, separate from the units one.
  • NVME_CMBSWTP_CMBSWTU_B β€” Bytes/second granularity πŸ“
  • NVME_CMBSWTP_CMBSWTU_1K β€” 1 KiB/second granularity 🌸
  • NVME_CMBSWTP_CMBSWTU_1M β€” 1 MiB/second granularity 🌈
  • NVME_CMBSWTP_CMBSWTU_1G β€” 1 GiB/second granularity πŸ‘‘
not me alphabetically listing them and lowkey double-checking the mask names three times πŸ™ˆ the units family is CMBSWTU, the value family is CMBSWTV β€” one letter apart, forever beefing.

and that's the whole page, bestie 🫢 we ate. this was libnvme, manual section 2, documented back in July 2026 β€” go forth and decode your throughput units responsibly πŸ’œ

πŸ“¦ where this page comes from