pm_clk_list_lock(9)
π pm_clk_list_lock(9) β Kernel API Manual π
okay so bestie, welcome to the Kernel API Manual page for pm_clk_list_lock(9) β this one is short, iconic, and all about locking before you touch the PM clock entry list. π
β¨ NAME β¨
pm_clk_list_lock β ensure exclusive access for modifying the PM clock entry list. That's literally the assignment, no cap. π«Ά
πΈ SYNOPSIS πΈ
void pm_clk_list_lock (struct pm_subsys_data *psd );
π¦ ARGUMENTS π¦
psdβ thepm_subsys_datainstance corresponding to the PM clock entry list and theclk_op_might_sleepcount that's about to be modified. This is your main-character argument, bestie. β¨
π DESCRIPTION π
Okay so the vibe here: get exclusive access before you modify the PM clock entry list and the clock_op_might_sleep count, because we're guarding against concurrent modifications. No chaotic edits allowed, periodt. π₯
This also protects against a concurrent clock_op_might_sleep and PM clock entry list usage in pm_clk_suspend/pm_clk_resume that may or may not happen in atomic context. That's why both the mutex and the spinlock must be taken here β yes, both, bestie. π
π SEE ALSO π
Kernel file ./drivers/base/power/clock_ops.c is the source-file bestie, and the whole squad is: 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_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).
mwah π β this page ships from ./drivers/base/power, is dated October 2026, and belongs to pm_clk_list_lock(9) π«Ά
π¦ 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