disable_clock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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:

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