pm_clk_remove_clk(9)
π pm_clk_remove_clk(9) β Kernel API Manual π
okay so bestie, welcome to the <cyan>Kernel API Manual</cyan> page for pm_clk_remove_clk β it's a whole vibe about telling a device's power management to stop using a clock, and honestly? iconic. π¦
β¨ NAME β¨
pm_clk_remove_clk β Stop using a device clock for power management. literally the "we're done here, bestie" of clock handling. π
β¨ SYNOPSIS β¨
void pm_clk_remove_clk (struct device *dev , struct clk *clk );
no cap, that's the whole signature β nothing returned (it's a void, she gives nothing back and she's thriving). β¨
β¨ ARGUMENTS β¨
devβ the device whose clock should not be used for PM any more. like, this is the main character we're removing the clock from. π«Άclkβ Clock pointer. that's it, that's the pointer. π
β¨ DESCRIPTION β¨
so here's the tea β β you take the clock that clk points to, and you remove it from the list of clocks used for the power management of dev.
that's the whole plot. no plot twists. she just quietly slides the clock out of the PM list and leaves. lowkey graceful, highkey important. πΈ
β¨ SEE ALSO β¨
bestie there are SO many siblings, buckle up β the kernel file ./drivers/base/power/clock_ops.c is the home base π and here's the whole friend group:
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_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 in there twice β that's how the original rolls, so we're keeping it twice. she's just that nice they listed her again. ππ
okay that's the whole page π§ from ./drivers/base/power, dated October 2026, and screaming pm_clk_remove_clk(9) one more time for the people in the back. mwah, go forth and remove those clocks responsibly. πβπ
π¦ 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