libnvme(2)
π libnvme(2) β the API Manual, but make it make sense π
okay bestie, so this is libnvme(2), the API manual page, and today's main character is enum nvme_unit β literally the thing that tells you what unit your buffer size and your write throughput granularity are being measured in. it's giving "units, but make it an enum" and honestly? iconic. π
β¨ NAME β¨
enum nvme_unit β the buffer size and write throughput granularity units, defined. periodt. π
πΈ SYNOPSIS πΈ
enum nvme_unit {
NVME_UNIT_B ,
NVME_UNIT_1K ,
NVME_UNIT_1M ,
NVME_UNIT_1G
};
no cap, that's the whole shape of it. four little constants, four little vibes. π¦
π Constants π
okay so here's the roster, one by one, and yes i'm obsessed with all of them:
NVME_UNIT_Bβ Bytes... or Bytes/second, depending on whether we're talking size or throughput. it's the same letter doing double duty and honestly, multitasking queen. πNVME_UNIT_1Kβ 1 KiB. or, if you're in throughput mode, 1 KiB/second. the KiB is capitalized because that's the binary one, and yes the distinction matters, iykyk. π§NVME_UNIT_1Mβ 1 MiB. or 1 MiB/second when we're talking speed. big numbers, bigger energy. π₯NVME_UNIT_1Gβ 1 GiB. or 1 GiB/second. gigachad unit fr fr. π
lowkey the whole point here: same four units, two possible readings β size or per-second throughput. don't mix them up, bestie, that's the vibe check and you do not want to fail it. π
okay that's the page!! written by the libnvme API manual girlies, enum nvme_unit edition, dated July 2026 (yes we're already there, time is fake πΈ). go forth and measure your buffers correctly, you absolute star. π«Άβ¨π
π¦ 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