calc_fb_divi...ng_tolerance(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

  • true if the error is within tolerance β€” slay, we ate πŸ’…πŸ”₯
  • false if the error is not within tolerance β€” nope, try again 😭

πŸ‘‘ SEE ALSO πŸ‘‘


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