clk_hw_register_clkdev(9)
β¨ 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β thestruct clk_hwyou're associating with all theclk_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
- Kernel file
./drivers/clk/clkdev.c clkdev_create(9)clkdev_hw_create(9)clk_register_clkdev(9)devm_clk_hw_register_clkdev(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms