intel_pmc_s0ix_counter_read(9)
β¨ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms