drm_dp_read_sink_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_dp_read_sink_count β€” a Kernel API Manual moment

okay so real talk, this is a page from the Kernel API Manual, and bestie, the whole thing is literally drm_dp_read_sink_count(9) β€” that's the name, that's the function, we're in DisplayPort land now πŸ’–

✨ NAME ✨

drm_dp_read_sink_count β€” Retrieve the sink count for a given sink 🫢

πŸŽ€ SYNOPSIS πŸŽ€

int drm_dp_read_sink_count (struct drm_dp_aux *aux );

🌸 ARGUMENTS 🌸

  • aux β€” the DP AUX channel to use, no cap. This is the channel you're reading the sink count through, so like, pick the right one bestie 😌

πŸ¦‹ DESCRIPTION πŸ¦‹

ngl the description here is a little shy β€” it just points you at another page:

See also: drm_dp_read_sink_count_cap πŸ‘€

that's it, that's the whole vibe check. go read the cap function, iykyk ✨

πŸ’œ RETURN πŸ’œ

The current sink count reported by aux, or a negative error code otherwise πŸ’€

so like β€” happy path you get a number, sad path you get a negative error code. check it fr fr, don't just assume it's a count πŸ™ˆ

🌈 SEE ALSO 🌈

This list is long bestie, like main character energy long, but every single one is here, no skips πŸ‘‘


and that's the page bestie, we ate and left zero crumbs πŸ’…βœ¨

signing off from ./drivers/gpu/drm/display, dated October 2026 β€” literally the drm_dp_read_sink_count(9) source/version era, ok bye πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from