disable_clock(9)
π disable_clock(9) β the kernel API manual, bestie edition π
okay so this is disable_clock, from the kernel API manual, and honestly it's giving "short but iconic." One job, does it well. Let's get into it π
β¨ NAME β¨
disable_clock β Disable a device clock. That's it, that's the whole vibe. It turns a clock off, periodt π«Ά
πΈ SYNOPSIS πΈ
void disable_clock (struct device *dev , const char *con_id );
no cap, that's the whole signature. void return, so nothing comes back β you just call it and trust the process β¨
π¦ ARGUMENTS π¦
devβ the device whose clock is to be disabled. like, this one right here, bestie, this device's clock, turn it off π₯con_idβ the connection ID of the clock. yep, the connection ID. that's the identifier you hand over so the kernel knows which clock of that device you're talking about π
fr fr, that's the entire argument list β two things, both required, no defaults, no extras. she's lowkey minimalist and I respect it π
π SEE ALSO π
okay so the whole friend group shows up here. the source lives in the kernel file ./drivers/base/power/clock_ops.c, and here's everyone tagged in the group chat:
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_create(9)pm_clk_destroy(9)pm_clk_suspend(9)pm_clk_resume(9)pm_clk_notify(9)enable_clock(9)pm_clk_notify(9)β yes, she's listed twice, and I'm not editing the guest list, that's what the original says πpm_clk_add_notifier(9)
like I said β pm_clk_notify(9) literally appears two times in the SEE ALSO. iconic of her to double-book, and we're keeping it exactly as-is π
aaaand that's the page!! short, sweet, one function, two args, one very long SEE ALSO π
cute little sign-off: this one ships from ./drivers/base/power, dated October 2026 β so mark your calendars, bestie π§π
slay, go disable some clocks responsibly β¨π
π¦ 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