__wrpll_calc_fbdiv(9)
π NAME π
Okay so bestie, this is the __wrpll_calc_fbdiv(9) page from the Kernel API Manual, and its whole gig is to return feedback fixed divide value. Thatβs it. Thatβs the job. Iconic, lowkey.
β¨ SYNOPSIS β¨
Hereβs the signature, character for character:
u8 __wrpll_calc_fbdiv (const struct wrpll_cfg *c );
π«Ά ARGUMENTS π«Ά
cβ ptr to astruct wrpll_cfgrecord to read from. Yes, itβs a pointer, and yes, you read from it.
π DESCRIPTION π
So the internal feedback path has a fixed by-two divider, right? But the external feedback path does not. The way that works is: this function returns the appropriate divider value β 2 or 1 β depending on whether internal or external feedback is enabled. Periodt.
Ngl, this code does not test for invalid configurations (e.g. both or neither of WRPLL_FLAGS_*_FEEDBACK are set). It relies on the caller to do so. So do your vibe check before you call it, bestie, fr fr.
πΈ CONTEXT πΈ
Any context. But the caller must protect the memory pointed to by c from simultaneous modification. No cap β that part is on you.
π¦ RETURN π¦
2if internal feedback is enabled1if external feedback is enabled
π₯ SEE ALSO π₯
- Kernel file:
./drivers/clk/analogbits/wrpll-cln28hpc.c __wrpll_calc_filter_range(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)
Cute sign-off time: source/version is ./drivers/clk/analogbits, the date is October 2026, and the page is __wrpll_calc_fbdiv(9). Mwah πβ¨
π¦ 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