libnvme(2)

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

okay bestie, welcome to the libnvme manual, page 2 πŸ’… this one's a little enum and she's honestly so underrated. it's giving "tiny but mighty."


✨ NAME ✨

enum nvme_pmrswtp β€” this field indicates the persistent memory region sustained write throughput πŸ¦‹

like, literally. that's her whole job. she tells you how fast your persistent memory region can sustain writes, no cap.


🌸 SYNOPSIS 🌸

enum nvme_pmrswtp {
    NVME_PMRSWTP_PMRSWTU_SHIFT ,
    NVME_PMRSWTP_PMRSWTV_SHIFT ,
    NVME_PMRSWTP_PMRSWTU_MASK ,
    NVME_PMRSWTP_PMRSWTV_MASK ,
    NVME_PMRSWTP_PMRSWTU_BPS ,
    NVME_PMRSWTP_PMRSWTU_KBPS ,
    NVME_PMRSWTP_PMRSWTU_MBPS ,
    NVME_PMRSWTP_PMRSWTU_GBPS

};

look at her. eight constants, all lined up, minding their business πŸŽ€


πŸ‘‘ Constants πŸ‘‘

so these are the actual members, and each one is doing a specific lil thing. let's go one by one, bestie, no skipping:

  • NVME_PMRSWTP_PMRSWTU_SHIFT β€” the shift amount to get the PMR sustained write throughput units. it shifts, you get units. iconic behaviour πŸ’…
  • NVME_PMRSWTP_PMRSWTV_SHIFT β€” the shift amount to get the PMR sustained write throughput value itself. the actual throughput. the moment ✨
  • NVME_PMRSWTP_PMRSWTU_MASK β€” a mask to get the PMR sustained write throughput units. masking, but make it purposeful 🫢
  • NVME_PMRSWTP_PMRSWTV_MASK β€” a mask to get the PMR sustained write throughput value. yes, they're a matched set, they're a package deal 😭
  • NVME_PMRSWTP_PMRSWTU_BPS β€” bytes per second πŸ“
  • NVME_PMRSWTP_PMRSWTU_KBPS β€” 1 KiB / s 🌈
  • NVME_PMRSWTP_PMRSWTU_MBPS β€” 1 MiB / s πŸ”₯
  • NVME_PMRSWTP_PMRSWTU_GBPS β€” 1 GiB / s πŸ‘‘

notice the units ladder: B β†’ KiB β†’ MiB β†’ GiB. she climbs, she scales, she serves. that's main character energy fr fr 🌟

heads up bestie: NVME_PMRSWTP_PMRSWTU_KBPS, NVME_PMRSWTP_PMRSWTU_MBPS and NVME_PMRSWTP_PMRSWTU_GBPS are all 1-something per second β€” one KiB, one MiB, one GiB. don't read them as "kilo/mega/giga" free-floating, they're the binary-flavoured ones πŸ’–

and that's the whole page, you ate it πŸŽ€

this little cutie comes to you from enum nvme_pmrswtp, stamped July 2026, living under the libnvme(2) umbrella β€” API Manual vibes only. go forth and shift those bits, bestie. iykyk πŸ’œπŸ¦‹πŸ’…

πŸ“¦ where this page comes from