cpufreq_register_notifier(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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: either CPUFREQ_TRANSITION_NOTIFIER or CPUFREQ_POLICY_NOTIFIER. pick your fighter πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

so you're adding a notifier to one of two lists, bestie:

  1. 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 ⭐
  2. 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