intel_dp_tu...c_check_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, you found a page from the Kernel API Manual and ngl the header is a whole mouthful, but we're gonna get through it together 🫢


✨ NAME ✨

intel_dp_tunnel_atomic_check_link β€” the vibe check for your DP tunnel atomic state 🌈


πŸŽ€ SYNOPSIS πŸŽ€

int intel_dp_tunnel_atomic_check_link (struct intel_atomic_state *state
, struct intel_link_bw_limits *limits );

like, it takes two things and gives you back an int. iconic behavior honestly πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • state β€” the intel atomic state. that's the main character right there πŸ’…
  • limits β€” link BW limits. the bandwidth budget, the boundaries, the rules ✨

🌸 DESCRIPTION 🌸

So here's the tea: this function checks the link configuration for all DP tunnels in state. all of them. every single one. no skipping πŸ™ˆ

And if that configuration is invalid? It'll update limits if possible to reduce the total BW. then β€” and this is the important part β€” after that happens, the configuration for all CRTCs in state must be recomputed with the updated limits. fr fr, you gotta go back around πŸ”


⭐ RETURN ⭐

  • 0 β€” slay πŸ’– the configuration is valid. nothing to do, you're done, go touch grass.
  • -EAGAIN β€” the configuration is invalid, BUT limits got updated with fallback values. so now the configuration of all CRTCs in state must be recomputed. it's giving "not wrong, just not done yet" 😭
  • Other negative error β€” the configuration is invalid with no fallback possibility, or the check just failed for another reason entirely. πŸ’€ yeah. that one hurts.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/gpu/drm/i915/display/intel_dp_tunnel.c β€” that's where the source lives, go be nosy bestie 🧚

like, a whole friend group of tunnel functions. the way they all showed up together πŸ”₯


lowkey reminder: if you get a negative return that isn't -EAGAIN, there's no fallback plan. that's not a "try again" moment, that's a "something's actually broken" moment πŸ™ˆ

and that's the page!! πŸ“ this one came out of ./drivers/gpu/drm/i915/display, dated October 2026, and the header goes by intel_dp_tu...c_check_link(9) because apparently even manpage titles get truncated. we love an abbreviation era πŸ’œ bye bestie, go check those tunnels πŸ¦‹

πŸ“¦ where this page comes from