devm_clk_hw_register_clkdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devm_clk_hw_register_clkdev(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” we're looking at devm_clk_hw_register_clkdev(9), and it's giving managed clk lookup registration for clk_hw. ✨

🌸 NAME 🌸

devm_clk_hw_register_clkdev β€” managed clk lookup registration for clk_hw. πŸŽ€

✨ SYNOPSIS ✨

int devm_clk_hw_register_clkdev (struct device *dev , struct clk_hw *hw
, const char *con_id , const char *dev_id );

πŸ’… ARGUMENTS πŸ’…

  • dev β€” the device this lookup is bound to. 🫢
  • hw β€” the struct clk_hw to associate with all clk_lookups. πŸ‘‘
  • con_id β€” connection ID string on the device. 🌸
  • dev_id β€” format string describing the device name. πŸ¦‹

🌈 DESCRIPTION 🌈

con_id or dev_id may be NULL as a wildcard, just as in the rest of clkdev. no cap, that's the vibe. πŸ’«

To make things easier for mass registration, we detect error clk_hws from a previous clk_hw_register_*() call, and return the error code for those. This is to permit this function to be called immediately after clk_hw_register_*(). literally so convenient. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/clk/clkdev.c β€” plus these besties: clkdev_create(9), clkdev_hw_create(9), clk_register_clkdev(9), and clk_hw_register_clkdev(9). πŸ’œ


bye bestie! source/version: ./drivers/clk; date: October 2026; and yes, this whole iconic page is devm_clk_hw_register_clkdev(9). slay πŸŽ€

πŸ“¦ where this page comes from