libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’œ 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 after FFFFFFFFh β€” no cap, she just stops. also, she gets Cleared to 0h if PMC is 0h. so if PMC is zero, phbc is giving nothing, literally zero, periodt πŸ™ˆ
  • phblt β€” Power Histogram Bin Lower Threshold 🌈 and this is the part where it gets fun: Bits 17:16 are PWRS (see enum nvme_psd_ps), and bits 15:0 are PWRV. two things in one field, she's multitasking, main character energy fr fr ✨

🫢 quick reminder bestie: keep the field names exactly as written β€” phbc and phblt, 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