dfll_read_monitor_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dfll_read_monitor_rate(9) β€” Kernel API Manual, bestie edition ✨

okay so this is a page from the Kernel API Manual and it's all about dfll_read_monitor_rate, and honestly? it's a little baddie. let's get into it 🫢


🌸 NAME 🌸

dfll_read_monitor_rate β€” return the DFLL's output rate from internal monitor

like... it reads the rate. from the monitor. the internal one. the name is not lying to you πŸ’€


⭐ SYNOPSIS ⭐

u64 dfll_read_monitor_rate (struct tegra_dfll *td );

(yes the space before the ) is staying, it's part of the fit, don't @ me πŸ’…)


πŸŽ€ ARGUMENTS πŸŽ€

  • td β€” DFLL instance. that's the one and only thing you hand it. your dfll. your guy. πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea β˜• β€” if the DFLL is enabled, this function returns the last rate reported by the DFLL's internal monitoring hardware. iconic behaviour, no notes.

the way that it works in both open-loop and closed-loop mode?? versatile queen πŸ‘‘. and it takes the output scaler setting into account, so the number you get actually reflects the scaling, not just the raw vibe.

this function assumes that the monitor was programmed to monitor frequency before the sample period started β€” like, that's a precondition bestie, it's not checking, it's trusting you πŸ™ˆ

and then the important bit: if the driver believes that the DFLL is currently uninitialized or disabled, it will return 0. why? because otherwise the DFLL monitor data register will return the last measured rate from when the DFLL was active β€” which would be some stale, expired, last-season data and we're simply not doing that 😭. so 0 it is. periodt.


🌈 SEE ALSO 🌈

okay this list is LONG, hydrate before reading, but every single one is here, fr fr πŸ’–

Kernel file ./drivers/clk/tegra/clk-dfll.c


and that's the whole page, bestie πŸ§šπŸ’œ it lives over in ./drivers/clk/tegra, it's dated October 2026, and it's filed under dfll_read_monitor_rate(9). go read some kernel source, it's giving main character energy β­πŸ“

πŸ“¦ where this page comes from