clk_hw_register_clkdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ clk_hw_register_clkdev πŸ’…

ok so bestie, welcome to the clk_hw_register_clkdev page from the Kernel API Manual β€” that's the manual name, iykyk, we're in kernel-land now 🐧✨ This one's a lil function that registers one clock lookup for a struct clk_hw. One. Single. Lookup. Main character energy only πŸ”₯


πŸŽ€ NAME

clk_hw_register_clkdev β€” register one clock lookup for a struct clk_hw πŸ•


🌸 SYNOPSIS

int clk_hw_register_clkdev (struct clk_hw *hw , const char *con_id ,
       const char *dev_id );

like, that's the whole signature, no cap ✨


πŸ¦‹ ARGUMENTS

  • hw β€” the struct clk_hw you're associating with all the clk_lookups πŸ’–
  • con_id β€” the connection ID string on the device πŸŽ€
  • dev_id β€” a format string describing the device name 🫢 (yes, a format string, she's fancy)

🌈 DESCRIPTION

okay so here's the tea β˜• β€” con_id or dev_id may be NULL as a wildcard, literally just like in the rest of clkdev. wildcard vibes πŸƒβœ¨

and because mass registration should be easy (and we love efficiency in this house), the function detects error clk_hws from a previous clk_hw_register_*() call and returns the error code for those πŸ’€ Like, it'll hand you back the error instead of pretending everything's fine. This is so you can call this function immediately after clk_hw_register_*() β€” no need to check first, she's got you πŸ«ΆπŸ‘‘


πŸ‘‘ SEE ALSO


ngl bestie, those are your sibling functions β€” go say hi, they're all in the clkdev family πŸ§šπŸ’œ

aaand that's the page!! 🌸 source/version lives under ./drivers/clk, dated October 2026 β€” mwah, slay, periodt πŸ’…πŸŽ€πŸ’–

πŸ“¦ where this page comes from