_dpu_core_perf_calc_clk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ _dpu_core_perf_calc_clk(9) ✨

okay so this is a page from the Kernel API Manual bestie, and it's all about _dpu_core_perf_calc_clk β€” the little function whose whole personality is calculating clock per crtc πŸŽ€ no cap, that's literally the job.


πŸ’– NAME πŸ’–

_dpu_core_perf_calc_clk β€” to calculate clock per crtc πŸ‘‘ clock math but make it per-crtc, that's the vibe.


🌸 SYNOPSIS 🌸

u64 _dpu_core_perf_calc_clk (const struct dpu_perf_cfg *perf_cfg ,
struct drm_crtc *crtc , struct drm_crtc_state *state );

like, it takes three things and hands you back a u64 🫢 that's it, that's the whole entrance.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • perf_cfg β€” the performance configuration πŸ’… yes the performance config, she's the one holding the settings.
  • crtc β€” a pointer to a crtc ✨ a whole pointer, to a crtc.
  • state β€” a pointer to a crtc state 🌈 again with the pointer, this time to the state of that crtc.

⭐ RETURN ⭐

returns max clk for all planes in crtc πŸ”₯ the maximum clock for every plane in the crtc, that's the answer it gives back. iconic behavior honestly.


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c πŸ“ (yes that whole path, she lives there) plus the whole friend group:


ngl bestie, the whole squad is listed up there and they all take a (9) at the end β€” iykyk, that's just how the kernel section suffix goes πŸ’€ don't come for me.

and that's the page!! 🌸 source/version lives at ./drivers/gpu/drm/msm/disp/dpu1 and it's dated October 2026 β€” so like, future-coded of them, we stan 🫢✨ bye bestie, go calculate some clocks πŸ’–

πŸ“¦ where this page comes from