drm_dp_link_add_rate(9)
π drm_dp_link_add_rate(9) π
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:
drm_dp_link_remove_rate(9)drm_dp_link_update_rates(9)drm_dp_link_probe(9)drm_dp_link_configure(9)drm_dp_link_choose(9)Link training(9)drm_dp_link_train_init(9)drm_dp_link_train(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms