__wrpll_calc_fbdiv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 a struct wrpll_cfg record 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 πŸ¦‹

  • 2 if internal feedback is enabled
  • 1 if external feedback is enabled

πŸ”₯ SEE ALSO πŸ”₯


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