of_pm_clk_add_clks(9)
π of_pm_clk_add_clks(9) π
okay bestie, welcome to the Kernel API Manual page for of_pm_clk_add_clks(9) β manual name folded in right at the top, we're being efficient and cute β¨
πΈ NAME πΈ
of_pm_clk_add_clks β start using device clock(s) for power management. periodt.
β¨ SYNOPSIS β¨
int of_pm_clk_add_clks (struct device *dev );
π ARGUMENTS π
devβ the device whose clock(s) is going to be used for power management. like, this is the device we're doing the clock power-management thing for π
π¦ DESCRIPTION π¦
So here's the vibe: you add a series of clocks described in the 'clocks' device-tree node for a device to the list of clocks used for the power management of dev.
On success, it returns the number of clocks added. Returns a negative error code if there are no clocks in the device node for the device or if adding a clock fails. that's the whole check πβ¨
π SEE ALSO π
Kernel file: ./drivers/base/power/clock_ops.c β that's the source file, bestie.
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)__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)pm_clk_notify(9)enable_clock(9)disable_clock(9)pm_clk_notify(9)pm_clk_add_notifier(9)
and yes, pm_clk_notify(9) is lowkey listed twice β iconic, and we're keeping both because details are sacred π«Ά
mwah π that's the page! Signing off from ./drivers/base/power, October 2026 β of_pm_clk_add_clks(9) out! πβ¨
π¦ 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