cpufreq_cpu_put(9)
π cpufreq_cpu_put(9) β the Kernel API Manual, bestie edition π
okay so real talk, this one is from the Kernel API Manual and it's literally the polite goodbye of the cpufreq world. You grabbed a policy with cpufreq_cpu_get, you did your little thing, and now you gotta give it back. Rude not to. π
β¨ NAME β¨
cpufreq_cpu_put β decrement that kobject usage counter for the cpufreq policy, bestie. It's giving "return what you borrowed" energy and honestly? Iconic. π«Ά
πΈ SYNOPSIS πΈ
void cpufreq_cpu_put (struct cpufreq_policy *policy );
That's it. That's the whole vibe check. No return value, no drama, just vibes and a pointer. π
π¦ ARGUMENTS π¦
policyβ the cpufreq policy thatcpufreq_cpu_gethanded you. Like, specifically the one you got fromcpufreq_cpu_get. Don't be out here passing random policies, that's not the move. π
π SEE ALSO π
okay this list is a whole friend group and you're gonna meet all of them. no cap, every single one:
- Kernel file
./drivers/cpufreq/cpufreq.c(the mothership π ) cpufreq_cpu_get(9)β the one that started it all, the counterpart, the other half of this relationshipadjust_jiffies(9)cpufreq_notify_transition(9)cpufreq_enable_fast_switch(9)cpufreq_disable_fast_switch(9)cpufreq_driver_resolve_freq(9)cpufreq_parse_governor(9)cpufreq_add_dev(9)cpufreq_out_of_sync(9)cpufreq_quick_get(9)cpufreq_quick_get_max(9)cpufreq_get_hw_max_freq(9)cpufreq_get(9)cpufreq_suspend(9)cpufreq_resume(9)cpufreq_driver_test_flags(9)cpufreq_get_current_driver(9)cpufreq_get_driver_data(9)cpufreq_register_notifier(9)cpufreq_unregister_notifier(9)cpufreq_driver_fast_switch(9)cpufreq_driver_adjust_perf(9)cpufreq_driver_has_adjust_perf(9)cpufreq_update_pressure(9)cpufreq_set_policy(9)cpufreq_update_policy(9)cpufreq_update_limits(9)cpufreq_register_driver(9)
Like I said. Entire friend group. All of them are (9) and all of them are slaying in their own way. π
β¨
ngl if you callcpufreq_cpu_getand then forget to callcpufreq_cpu_put, the counter just sits there. Forever. Haunting you. Main character behaviour but make it a leak. π« So put it back, bestie.
π that's the page!! shoutout to the source tree at ./drivers/cpufreq, dated October 2026 β mwah, love that for us ππ
π¦ 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