libnvme(9)
π libnvme(9) β API Manual β¨
okay so bestie, welcome to the libnvme API manual, section 9 π this one is a tiny little struct and honestly she's lowkey iconic for how much lore she packs into two fields. buckle up π¦
πΈ NAME
struct nvme_power_histogram_desc β the Power Histogram Descriptor, aka the glow-up chart for your drive's power bins π
β SYNOPSIS
struct nvme_power_histogram_desc {
__le32 phbc;
__le32 phblt;
};
look at her. two __le32s. that's it. that's the whole vibe π
π§ Members
phbcβ Power Histogram Bin Count π and listen, she does not wrap afterFFFFFFFFhβ no cap, she just stops. also, she gets Cleared to0hif PMC is0h. so if PMC is zero,phbcis giving nothing, literally zero, periodt πphbltβ Power Histogram Bin Lower Threshold π and this is the part where it gets fun: Bits17:16are PWRS (seeenum nvme_psd_ps), and bits15:0are PWRV. two things in one field, she's multitasking, main character energy fr fr β¨
π«Ά quick reminder bestie: keep the field names exactly as written βphbcandphblt, not "phbc-ish" or whatever. the kernel does not do vibes, it does bytes π
and that's the page!! mwah π this was struct nvme_power_histogram_desc from libnvme(9), API Manual β October 2026 edition, brought to you by the libnvme girlies πΈβ¨ slay, and see you in the next struct ππ
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms