sg2042_clk_pll_recalc_rate(9)
π sg2042_clk_pll_recalc_rate(9) β from the Kernel API Manual, bestie π
okay so picture this: it's a kernel API manual page, it's about clocks, and it's literally the recalc_rate callback for pll clks. buckle up β¨
π NAME π
sg2042_clk_pll_recalc_rate β the recalc_rate callback for pll clks. that's it, that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
unsigned long sg2042_clk_pll_recalc_rate (struct clk_hw *hw , unsigned
long parent_rate );
like yes, it returns an unsigned long, and yes, it takes two things. we'll get to those π§
π¦ ARGUMENTS π¦
hwβ this is the ccf hook situation, used to get atsg2042_pll_clock. ccf uses it to hook, iykyk π«parent_rateβ the parent rate. that's the parent's rate. no notes π
β¨ DESCRIPTION β¨
so the way this works: this function gets called through clk_get_rate, and it returns the current rate β after decoding the reg value. decoding!! the reg value!! it's giving detective energy ππ
π₯ RETURN π₯
the current rate, all recalculated and fresh. slay π
π SEE ALSO π
- the kernel file
./drivers/clk/sophgo/clk-sg2042-pll.cβ go read it, it's iconic struct sg2042_pll_clock(9)sg2042_pll_recalc_rate(9)sg2042_pll_get_postdiv_1_2(9)sg2042_get_pll_ctl_setting(9)
and that's the page, bestie π it lives over at ./drivers/clk/sophgo, stamped October 2026, and it's filed under sg2042_clk_pll_recalc_rate(9) β mwah, go forth and read your clocks πβπ
π¦ 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