of_pm_clk_add_clks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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.

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