pm_clk_notify(9)
π pm_clk_notify β the manual page (Kernel API Manual, bestie edition) π
okay so welcome to pm_clk_notify(9), the notifier routine for when devices get added or removed, and honestly she's lowkey the glue holding the clock situation together. let's get into it π«Ά
β¨ NAME β¨
pm_clk_notify β Notify routine for device addition and removal. that's it, that's the vibe β¨
πΈ SYNOPSIS πΈ
int pm_clk_notify (struct notifier_block *nb , unsigned long action ,
void *data );
π ARGUMENTS π
nbβ the notifier block object that this function is literally a member of. she knows her family πactionβ whatever operation the caller is out here carrying out. main character behaviour fr frdataβ the device this routine is being run for. yes bestie, that device π
π¦ DESCRIPTION π¦
okay so for this function to actually work β and we do want her to work β nb must be a member of an object of type struct pm_clk_notifier_block that's containing all of the requisite data. no shortcuts, no vibes-only setup π«Ά
specifically?? the con_ids member of that object is the one doing the heavy lifting β it's used to enable or disable the device's clocks, depending on action. so action comes in, con_ids handles the clock enable/disable situation accordingly, and the whole thing just works. iconic, honestly π
π₯ SEE ALSO π₯
Kernel file ./drivers/base/power/clock_ops.c β that's where she lives π
pm_clk_list_lock(9)pm_clk_list_unlock(9)pm_clk_op_lock(9)pm_clk_op_unlock(9)__pm_clk_enable(9)pm_clk_acquire(9)pm_clk_add(9)pm_clk_add_clk(9)of_pm_clk_add_clks(9)__pm_clk_remove(9)pm_clk_remove_clk(9)pm_clk_init(9)pm_clk_create(9)pm_clk_destroy(9)pm_clk_suspend(9)pm_clk_resume(9)enable_clock(9)disable_clock(9)pm_clk_add_notifier(9)
the whole friend group, all of them slay β
and that's the page!! π this lil cutie comes from <purple>./drivers/base/power</purple> and is dated <mint>October 2026</mint>, and yes she's still showing up as pm_clk_notify(9) in the index β periodt π
πβ¨
π¦ 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