calc_fb_divi...ng_tolerance(9)
β¨ calc_fb_divi...ng_tolerance(9) β¨
okay bestie, so this is a page straight out of the Kernel API Manual π and it's literally all about one little function that does Big Math energy for your PLL. Let's get into it π
π NAME π
calc_fb_divider_checking_tolerance β this one calculates the Feedback and Fractional Feedback divider values for the reference divider and post divider you hand it, and the whole time it's doing a tolerance check. basically it's out here doing math and vibe-checking the result at the same time πβ¨
πΈ SYNOPSIS πΈ
bool calc_fb_divider_checking_tolerance (struct calc_pll_clock_source
*calc_pll_cs , struct pll_settings *pll_settings , uint32_t ref_divider
, uint32_t post_divider , uint32_t tolerance );
it returns a bool, bestie. that's the whole vibe. π«Ά
π¦ ARGUMENTS π¦
calc_pll_csβ pointer to the clock source information πpll_settingsβ pointer to the PLL settings πref_dividerβ the reference divider (already known, we're not figuring this one out, it's given) β¨post_dividerβ the post divider (also already known, same deal) πΈtoleranceβ the tolerance that the calculated pixel clock has to stay within. it's giving "how close is close enough" π―
π RETURN π
so here's the tea π β it fills the PLLSettings structure with the PLL divider values if the calculated values land inside the required tolerance.
then it returns:
trueif the error is within tolerance β slay, we ate π π₯falseif the error is not within tolerance β nope, try again π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.cπ calculate_fb_and_fractional_fb_divider(9)β the sibling function, go say hi π«Ά
okay that's the whole page, no cap β¨ this gem lives over in ./drivers/gpu/drm/amd/display/..., it's dated October 2026, and it answers to the name calc_fb_divi...ng_tolerance(9) β periodt ππ§
π¦ 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