pm_clk_create(9)
π pm_clk_create(9) β from the Kernel API Manual, bestie
okay so real talk, you're in the Kernel API Manual and this page is literally called pm_clk_create and it's giving "welcome to the clock list, we've been expecting you" β¨
β¨ NAME β¨
pm_clk_create β create and initialize a device's list of PM clocks. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
int pm_clk_create (struct device *dev );
πΈ ARGUMENTS πΈ
devβ the device you're creating and initializing the list of PM clocks for. it's the main character here, ngl π
π DESCRIPTION π
so here's the tea π: pm_clk_create allocates a struct pm_subsys_data object, initializes its lock and clock_list members, and then makes the dev's power.subsys_data field point to it. that's it. that's the whole glow-up. no cap, it's lowkey iconic π
like, you're basically setting up the little home where all the PM clocks are gonna live, and pointing dev at it so everybody knows where to find it. slay π«Ά
π₯ SEE ALSO π₯
- 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(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_destroy(9)pm_clk_suspend(9)pm_clk_resume(9)pm_clk_notify(9)enable_clock(9)disable_clock(9)pm_clk_notify(9)(yes bestie, it's listed twice β i don't make the rules, i just relay them π)pm_clk_add_notifier(9)
and that's the whole page, bestie!! π§ from ./drivers/base/power, dated October 2026, and yeah β this was pm_clk_create(9). go forth and create those clock lists ππβ
π¦ 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