clk_rcg2_split_div(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 between n and pre_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 the n divisor value. Also getting written to. Two pointers, one function, zero survivors πŸ’€
  • pre_div_max β€” the pre divisor maximum value. Basically the ceiling for how much pre_div is allowed to take, so the split knows where to stop. πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

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