devm_clk_hw_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devm_clk_hw_register(9) πŸ’–

okay so we're in the Kernel API Manual, bestie, and today's main character is devm_clk_hw_register. it's giving "clock registration but make it managed," and honestly? iconic. πŸŽ€

🌸 NAME 🌸

devm_clk_hw_register β€” resource managed clk_hw_register(). slay. ✨

✨ SYNOPSIS ✨

int devm_clk_hw_register (struct device *dev , struct clk_hw *hw );

πŸ’… ARGUMENTS πŸ’…

  • dev β€” the device that's registering this clock, fr fr.
  • hw β€” link to hardware-specific clock data. that's the vibe. πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

Managed clk_hw_register. Clocks registered by this function are automatically clk_hw_unregistered on driver detach. See clk_hw_register for more information.

okay so lowkey the whole point is that this is the managed version: when the driver detaches, the unregistering happens automatically. no cap. 🌈

πŸ”₯ SEE ALSO πŸ”₯

bestie, the SEE ALSO section is literally a whole group chat. The kernel file is ./drivers/clk/clk.c, and the references are:


okay that's the whole page, bestie 🫢 β€” source: ./drivers/clk, October 2026 edition. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from