__wrpll_calc_filter_range(9)
π
__wrpll_calc_filter_range β like, the NAME section but make it cute
okay so this page lives in the Kernel API Manual (section 9, for the uninitiated β¨) and it's literally all about one thing: determine PLL loop filter bandwidth. That's it. That's the whole vibe. π
β¨ SYNOPSIS β¨
int __wrpll_calc_filter_range (unsigned long post_divr_freq );
bestie. it's one function. it takes one argument. it returns an int. we love a low-maintenance icon. π
πΈ ARGUMENTS πΈ
post_divr_freqβ the input clock rate after the R divider. yes. after. please don't hand it the before-divider number, i'm begging π
π¦ DESCRIPTION π¦
so here's the tea β β this function picks the value you're gonna present to the PLL RANGE input signals, and it makes that call based on the input clock frequency after the post-R-divider, which is post_divr_freq.
and like, does it just make something up? no ma'am. π this code follows the recommendations in the PLL datasheet for filter range selection. the datasheet said what it said. we're respecting the datasheet.
no cap, that's the whole description. sometimes a function just does its job and doesn't need a whole saga. π
π₯ RETURN π₯
two possible endings, bestie:
- the
RANGEvalue to be presented to the PLL configuration inputs β the good ending π«Ά - or a negative return code upon error β the π ending. check for it. fr fr.
π SEE ALSO π
- Kernel file
./drivers/clk/analogbits/wrpll-cln28hpc.c __wrpll_calc_fbdiv(9)__wrpll_calc_divq(9)__wrpll_update_parent_rate(9)wrpll_configure_for_rate(9)wrpll_calc_output_rate(9)wrpll_calc_max_lock_us(9)
like, the whole friend group honestly. go read all of them. iykyk. π§
ngl this one's short and sweet, but that doesn't mean you get to skip the error check. negative return code = actual thing that can happen. π
and that's the page!! πΈ brought to you by ./drivers/clk/analogbits, dated October 2026, starring __wrpll_calc_filter_range(9) in the main character role. slay, periodt, go configure your PLL responsibly πβ¨π
π¦ 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