pm_clk_op_unlock(9)
π pm_clk_op_unlock(9) π
okay bestie, welcome to the Kernel API Manual β¨ β grab a lil snack π because this one is short and sweet and honestly kind of iconic for it.
β¨ NAME β¨
pm_clk_op_unlock β it's literally the counterpart to pm_clk_op_lock(). that's it. that's the whole vibe π like, they're a matching set, you can't have one without the other, iykyk π«Ά
πΈ SYNOPSIS πΈ
void pm_clk_op_unlock (struct pm_subsys_data *psd , unsigned long *flags
);
the way that signature just sits there and does its thing π
it returns void, so like β no reward, no little return value to obsess over, she just does the unlock and leaves π
π¦ ARGUMENTS π¦
psdβ the samepm_subsys_datainstance you previously passed topm_clk_op_lock. yes, the SAME one, bestie π not a lookalike, not a cousin, the actual same instance. it's giving "you had one job" energy but make it a lock pairing πflagsβ the irq flags thatpm_clk_op_lockhanded you. like, the lock gives you these flags, and you give them right back here. it's a whole handoff situation π€ do not lose them, do not improvise your own, just pass the ones you got π
π₯ SEE ALSO π₯
the kernel file ./drivers/base/power/clock_ops.c is where all this lives, and if you wanna go down the whole rabbit hole (and honestly? you should π), here's the full squad:
pm_clk_list_lock(9)pm_clk_list_unlock(9)pm_clk_op_lock(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)β yes she's listed twice, and honestly? double the notify, double the slay βpm_clk_add_notifier(9)
okay that's the whole page, you ate that π before you go, tiny sign-off: this lil masterpiece lives under ./drivers/base/power πΈ and the date stamp on it is October 2026 π so like, future vibes only, no cap. mwah π π§ββοΈ periodt
π¦ 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