__wrpll_update_parent_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __wrpll_update_parent_rate ✨

okay bestie, so this is a kernel API manual page β€” __wrpll_update_parent_rate(9), from the Kernel API Manual β€” and it's literally about updating PLL data when the parent rate changes. yes, that's a whole thing. let's get into it 🫢


🌸 NAME 🌸

__wrpll_update_parent_rate β€” update PLL data when parent rate changes πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int __wrpll_update_parent_rate (struct wrpll_cfg *c , unsigned long
parent_rate );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • c β€” ptr to a struct wrpll_cfg record to write PLL data to ✨
  • parent_rate β€” PLL input refclk rate (pre-R-divider) πŸ’«

πŸ’– DESCRIPTION πŸ’–

So what this does is pre-compute some data used by the PLL configuration algorithm, and it does that when the PLL's reference clock rate changes. the whole intention here is to avoid computation when the parent rate stays constant β€” which is expected to be the common case. iykyk, no cap, that's the vibe check. πŸ”₯

like, it's giving "why do the math again if nothing moved?" and honestly? iconic. πŸ‘‘


⭐ RETURN ⭐

Returns 0 upon success, or -ERANGE if the reference clock rate is out of range. 😭


πŸ’œ SEE ALSO πŸ’œ


fr fr go read those too, bestie, they're the whole squad 🧚

that's the whole page, hope it ate πŸ’… β€” this one came from ./drivers/clk/analogbits and the date on it is October 2026, so like, future vibes only 🌈✨ mwah, ily, go configure some PLLs πŸŽ€

πŸ“¦ where this page comes from