cpufreq_register_notifier(9)
cpufreq_register_notifier(9) π β¨
okay so this little icon comes straight out of the Kernel API Manual, and it's literally about registering a notifier with cpufreq. main character API behavior only, bestie π«Ά
π NAME π
cpufreq_register_notifier β register a notifier with cpufreq. that's the whole name, no cap π
πΈ SYNOPSIS πΈ
int cpufreq_register_notifier (struct notifier_block *nb , unsigned int
list );
π¦ ARGUMENTS π¦
nbβ the notifier function you're registering πlistβ the list you're registering it with: eitherCPUFREQ_TRANSITION_NOTIFIERorCPUFREQ_POLICY_NOTIFIER. pick your fighter π
π₯ DESCRIPTION π₯
so you're adding a notifier to one of two lists, bestie:
- the list of notifiers that run on clock rate changes β and yes, they run once before and once after every transition. iconic double-duty behavior β
- the list of notifiers that ron on cpufreq policy changes.
ron?? yes. that's what the page says. typo behavior but we're keeping the lore π
heads up: this function may sleep π΄ β and it has the same return values as blocking_notifier_chain_register.
π SEE ALSO π
Kernel file: ./drivers/cpufreq/cpufreq.c β and the whole crew is cpufreq_cpu_get(9), cpufreq_cpu_put(9), adjust_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_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). iykyk π
π mwah! source/version: ./drivers/cpufreq, date: October 2026, page: cpufreq_register_notifier(9). that's the footer but make it cute, bestie β go register that notifier and slay π
β¨
π¦ 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