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_MBPSandNVME_PMRSWTP_PMRSWTU_GBPSare 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
- 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