dfll_request_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dfll_request_rate β€” ok so this is the glow-up page for setting the DFLL's next rate πŸ’…

Welcome to the Kernel API Manual, bestie πŸŽ€ β€” this little page is all about dfll_request_rate, and honestly? It's giving "tell the clock what vibe we're going for next." Let's go ✨


🌸 NAME 🌸

dfll_request_rate β€” set the next rate for the DFLL to tune to 🎯


✨ SYNOPSIS ✨

int dfll_request_rate (struct tegra_dfll *td , unsigned long rate );

🫢 ARGUMENTS 🫢

  • td β€” the DFLL instance, like, the specific one you're talking to πŸ’–
  • rate β€” the clock rate you want to target, iykyk 🌈

πŸ”₯ DESCRIPTION πŸ”₯

So what this does is take the requested clock rate rate and convert it into the DFLL control logic settings. Literally translating your dreams into registers πŸ’…

Here's the tea on the two modes:

  • If you're in closed-loop mode, it'll update the new settings immediately so the DFLL output rate adjusts accordingly β€” instant main character energy ✨
  • Otherwise, it just saves them and chills until the next switch to closed loop πŸ’€

Return values, no cap:

  • 0 upon success β€” slay πŸŽ‰
  • -EPERM if the DFLL driver has not yet been initialized β€” rude, but okay 😭
  • -EINVAL if rate is outside the DFLL's tunable range β€” bestie that rate is not it πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/clk/tegra/clk-dfll.c plus this whole friend group:


πŸ’€ Friendly reminder bestie: -EINVAL means your rate was out of range, and -EPERM means the driver wasn't initialized yet. Check those before you spiral 🫢

And that's the whole page, periodt 🧚 This one lives down in ./drivers/clk/tegra, dated October 2026 β€” go drink some water and go touch a clock tree πŸ’œπŸ’–βœ¨

πŸ“¦ where this page comes from