clk_rcg2_split_div(9)
πΈ NAME πΈ
clk_rcg2_split_div β bestie, this is the split multiplier that just does not fit in n and doesn't fit in pre_div either π so it gets split between the two, and honestly? iconic problem-solving π
This page lives in the Kernel API Manual, and it's all about that one little function doing the most.
β¨ SYNOPSIS β¨
void clk_rcg2_split_div (int multiplier , unsigned int *pre_div , u16 *n
, unsigned int pre_div_max );
Notice it returns void β it's not giving you anything back, it's just doing its thing and editing your pointers in place. main character energy, fr fr π
π ARGUMENTS π
multiplierβ the multiplier that you're splitting betweennandpre_div. This is the number that's too big for either one alone, so it has to share the load π«Άpre_divβ a pointer to the pre divisor value. Yes, a pointer β so this function is gonna reach in and change it, no cap.nβ a pointer to thendivisor value. Also getting written to. Two pointers, one function, zero survivors πpre_div_maxβ the pre divisor maximum value. Basically the ceiling for how muchpre_divis allowed to take, so the split knows where to stop. π₯
π¦ SEE ALSO π¦
- Kernel file
./drivers/clk/qcom/clk-rcg2.c convert_to_reg_val(9)calc_rate(9)
Go read those too, they're literally in the same file and they're lowkey part of the whole story π
ok that's the whole page bestie, no gatekeeping π now go forth and split those multipliers correctly β¨
as always, this came from ./drivers/clk/qcom, it's part of the Kernel API Manual, and it's dated October 2026 β mwah, catch you on the next manpage ππ
π¦ 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