phm_get_clock_info(9)
π phm_get_clock_info β a kernel API manual moment
okay so first things first: this is a page from the Kernel API Manual (that's the manual name, bestie, it's right there in the header with phm_get_clock_info(9) and the section 9) β and yes, we're in the deep lore of the 9 section, kernel API territory, buckle up π
β¨ NAME β¨
phm_get_clock_info β
and that's it. That's the whole description. The original page literally leaves the dash hanging there with nothing after it, like a text message that got sent mid-thought π so no cap, I'm not gonna invent a description for you. The name is phm_get_clock_info, and the manpage has no words for what it does. Iconic, honestly.
πΈ SYNOPSIS πΈ
int phm_get_clock_info (struct pp_hwmgr *hwmgr , const struct
pp_hw_power_state *state , struct pp_clock_info *pclock_info ,
PHM_PerformanceLevelDesignation designation );
it returns an int, it takes four things, and yes the spacing around those commas is exactly like that, don't come for me, I'm just the messenger π«Ά
π¦ ARGUMENTS π¦
hwmgrβ the address of the powerplay hardware manager. that's the plug, the whole vibe source πstateβ the address of the Power State structure. the moment, the current situation, if you will β¨pclock_infoβ the address ofPP_ClockInfostructure where the result will be returned. this is the lil basket where your answer gets dropped off π§ΊdesignationβPHMperformance level designation.
okay so the description fordesignationin here is actually an exception note, so let me give it to you straight: ExceptionPP_Result_Failedif any of theparamtersisNULL, otherwise the return value from the back-end. (and yes, the page itself spells it "paramters" β I'm keeping it, it's part of the lore π)
so real talk: any NULL in those params β PP_Result_Failed comes back at you. otherwise you get whatever the back-end hands over. no extra detail, don't ask me for more, that's literally all the page gives us π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c phm_start_thermal_controller(9)
and that's the whole page, bestie, you ate that π stay hydrated, go read phm_start_thermal_controller(9) next, and remember β this little gem comes from source/version ./drivers/gpu/drm/amd/pm/power... dated October 2026, so like, future vibes only πβ¨
π¦ 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