intel_pmc_s0ix_counter_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ intel_pmc_s0ix_counter_read ✨

okay so this is a page from the Kernel API Manual, and bestie, it's a short one but it slaps πŸ’… it's literally just "how long has my laptop been napping" energy and honestly? iconic.


🌸 NAME 🌸

intel_pmc_s0ix_counter_read β€” Read S0ix residency

like, read the S0ix residency. that's the whole vibe. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

int intel_pmc_s0ix_counter_read (struct intel_pmc_dev *pmc , u64 *data );

no cap, that's the entire signature. two args, one int coming back at you. 🫢


πŸ’– ARGUMENTS πŸ’–

  • pmc β€” PMC device pointer. it's the lil handle to the PMC device, y'know, the thing you're asking. 🧚
  • data β€” Out param that contains current S0ix residency count. it's an out param, so like... it's where the answer gets delivered to, not where you pass something in. lowkey important distinction, bestie. ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

Writes to data how many usecs the system has been in low-power S0ix state.

that's it. that's the function. it writes the count of microseconds (yes, usecs) the system has spent chilling in the low-power S0ix state, and it puts that number into data. main character behaviour honestly β€” shows up, drops the number, leaves. πŸ”₯


⭐ RETURN ⭐

An error code or 0 on success.

so like, 0 means slay, we ate, everything's fine. anything else is an error code and you should probably pay attention to it. πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./drivers/mfd/intel_pmc_bxt.c

go read those too if you're obsessed with this corner of the kernel, iykyk πŸ¦‹


ngl there are no options, no environment variables, no files to configure, no signals, and no bug notes on this one β€” it's a tiny little function and it knows it. πŸŽ€

k byeeee, and remember: this page lives in ./drivers/mfd, it's dated October 2026, and it's serving intel_pmc_s0ix_counter_read(9) realness. periodt. πŸ’œπŸ“

πŸ“¦ where this page comes from