devm_clk_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_clk_register(9) πŸ’…

okay so we're in the Kernel API Manual, and this page is all about devm_clk_register(9) β€” the resource-managed clk_register() situation. Let's get into it, bestie πŸ’–


πŸŽ€ NAME πŸŽ€

devm_clk_register β€” resource managed clk_register() ✨


🌸 SYNOPSIS 🌸

struct clk * devm_clk_register (struct device *dev , struct clk_hw *hw
);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device that is registering this clock. She's the one filing the paperwork πŸ’…
  • hw β€” link to hardware-specific clock data. This is the hardware lore 🧚

πŸ”₯ DESCRIPTION πŸ”₯

Managed clk_register. This function is deprecated β€” like, for real β€” so use devm_clk_hw_register instead, bestie. No cap.

Clocks returned from this function are automatically clk_unregistered on driver detach. See clk_register for more information. iykyk πŸ’–

⚠️ deprecated alert: devm_clk_register is still here, but the manual is literally telling you to use devm_clk_hw_register instead. Periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/clk/clk.c is in the group chat, along with struct clk_core(9) and this whole iconic guest list:


mwah πŸ’‹ source/version: ./drivers/clk; date: October 2026; page: devm_clk_register(9). byeee 🫢

πŸ“¦ where this page comes from