drm_dp_link_add_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, so this one lives in the Kernel API Manual and honestly? it's giving "tiny but crucial". let's get into it ✨


🌸 NAME 🌸

drm_dp_link_add_rate β€” bestie, this is the function that adds a rate to the list of supported rates. that's it, that's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_dp_link_add_rate (struct drm_dp_link *link , unsigned long rate );

like yes, two args, one int back. iconic, lowkey minimal. 🫢


πŸ’œ ARGUMENTS πŸ’œ

  • link β€” the link you're adding the rate to. this is the main character of the operation ngl πŸŽ€
  • rate β€” the rate itself, the thing being added. the little guest of honour ✨

πŸ”₯ DESCRIPTION πŸ”₯

okay so the move here is simple and gorgeous: you take a link rate and you add it to the list of supported link rates. that's the whole function, no cap. πŸ’…

see also: drm_dp_link_remove_rate β€” yeah that's the opposite one, the "actually nevermind" counterpart πŸ’€


πŸ‘‘ RETURN πŸ‘‘

so on success you get 0, slay. but if things go sideways you get one of these negative error codes, and you will be told about it:

  • ENOSPC β€” this happens if the maximum number of supported rates has been reached. like the list is full, the club is at capacity, no more entries bestie 😭
  • EEXISTS β€” this one fires if the link already supports this rate. girl it's already there, we been knew πŸ™ˆ

🌈 SEE ALSO 🌈

kernel file ./drivers/gpu/drm/tegra/dp.c β€” yeah, that's where the magic lives, go look 🧚

and the whole friend group:

they all hang out together, iykyk πŸ’–


and that's the page!! brought to you by the source at ./drivers/gpu/drm/tegra, dated October 2026 β€” mwah, love u, go add those rates responsibly β­πŸ“πŸ’œ

πŸ“¦ where this page comes from