pm_clk_add(9)
π pm_clk_add(9) β the Kernel API Manual, but make it make sense
okay so bestie, we're in the Kernel API Manual today and this one is genuinely a little cutie. welcome to pm_clk_add(9) π
β¨ NAME β¨
pm_clk_add β start using a device clock for power management. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
int pm_clk_add (struct device *dev , const char *con_id );
like look at her. three tokens of pure main character energy. int coming back at you, dev and con_id going in. periodt. β¨
π¦ ARGUMENTS π¦
devβ the device whose clock is going to be used for power management. literally the star of the show, the whole reason we're here πcon_idβ the connection ID of the clock. yes bestie, the ID, the name-tag, the little "hi my name is" sticker for the clock π
π DESCRIPTION π
so what does she actually do? she adds the clock represented by con_id to the list of clocks used for the power management of dev. that's the lore. not me being obsessed with a list append π«Ά
like β that's the whole thing. clock goes in the list, list belongs to dev, power management now knows about it. iconic, lowkey, no notes. π
π₯ SEE ALSO π₯
bestie the cross-references are long, so I'm giving them to you straight down the line, no skips, no cuts, fr fr:
Kernel file ./drivers/base/power/clock_ops.c
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_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)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 not a typo on my end, that's the original being a little extra. she said "double it and give it to the next person" π but we keep her exactly as she is, no cap.
and that's the page, bestie!! π§ go forth, add your clocks, manage your power πβ¨
this little masterpiece lives at ./drivers/base/power, dated October 2026, and she goes by pm_clk_add(9) β mwah, stan her, goodnight ππ
π¦ 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