pm_clk_acquire(9)
πΈ pm_clk_acquire(9) β the pm_clk_acquire page, bestie edition πΈ
okay so real talk, this is a page from the Kernel API Manual (yes, the fancy one) and it's literally about grabbing a device clock. short page, but iconic. let's get into it π
β¨ NAME β¨
pm_clk_acquire β acquire a device clock. that's it. that's the whole vibe. you're getting a clock for a device, periodt ππ
β¨ SYNOPSIS β¨
void pm_clk_acquire (struct device *dev , struct pm_clock_entry *ce );
not me just copying this exactly because the facts do not change, only the energy does π take a sec, breathe it in. it returns void, meaning it gives you nothing back β the acquiring IS the moment, main character energy fr fr.
π¦ ARGUMENTS π¦
devβ the device whose clock is gonna get acquired. like, this is the device in question, the one we're doing all this for π«Άceβ the PM clock entry that corresponds to that clock. soceis the matching entry, the little buddy that lines up with the clock. iykyk π«
bestie pls note: these two go together,devandce, no cap.devis the device,ceis the PM clock entry for the clock. that's the whole cast π
π SEE ALSO π
okay this is the part where the page just lists everyone at the function party and honestly? obsessed. the kernel file lives at ./drivers/base/power/clock_ops.c and here's the whole squad π:
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_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_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) really does show up twice in the original list β i'm not gaslighting you, it's literally there twice, so it's here twice. we don't erase entries in this house πβ¨
π§ sign-off π§
this little page comes from ./drivers/base/power and it's dated October 2026, filed under pm_clk_acquire(9) in the Kernel API Manual. slay, go acquire ur clocks responsibly, mwah πππ₯
π¦ 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