phm_get_clock_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 of PP_ClockInfo structure where the result will be returned. this is the lil basket where your answer gets dropped off 🧺
  • designation β€” PHM performance level designation.
okay so the description for designation in here is actually an exception note, so let me give it to you straight: Exception PP_Result_Failed if any of the paramters is NULL, 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 🌈


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