samsung_clk_init(9)
β¨ samsung_clk_init β¨
okay so bestie, welcome to the Kernel API Manual π and today's main character is samsung_clk_init β the function that literally births a clock provider object. no cap, it's giving "let there be clocks." π
πΈ SYNOPSIS πΈ
struct samsung_clk_provider * samsung_clk_init (struct device *dev ,
void __iomem *base , unsigned long nr_clks );
likeβ¦ look at her. three args, returns a pointer to a struct samsung_clk_provider. iconic honestly π¦
π ARGUMENTS π
devβ the CMU device that gets runtime PM enabled β¨ β or<italic>NULL</italic>if RPM is not needed, in which case she simply doesn't need that energy and we respect it πbaseβ the start address (mapped!) of the CMU registers π the actual physical spot where the magic livesnr_clksβ total clock count to allocate in the clock provider object π°οΈ yes, you gotta tell her how many clocks up front, no vibes-based guessing
π DESCRIPTION π
So what does she actually do? She sets up the essentials required to support clock lookup using the Common Clock Framework π₯ that's it, that's the whole job β but it's a whole lot of essential-setup energy, fr fr. like she's the one laying the foundation so everything else can slay later π
β RETURN β
An allocated and initialized clock provider object π like she hands you back a fully-formed, ready-to-go struct samsung_clk_provider *. a whole new object, fresh out the box, vibes immaculate β¨
π¦ SEE ALSO π¦
- Kernel file
./drivers/clk/samsung/clk.cβ the source, go read her, iykyk π samsung_cmu_register_clocks(9)β her bestie, the next function you'll be calling π
ngl the whole point is: allocate + init the provider, then go register clocks. do not skip step one, she is not optional π
and that's the tea, bestie π this page came to you from ./drivers/clk/samsung, dated October 2026 β go forth and initialize your clocks, 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