amdgpu_dm_connector_detect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_dm_connector_detect(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so real quick, the manual name is amdgpu_dm_connector_detect(9) and this is the Kernel API Manual, and honestly? this one's a little baddie. it's the function that answers the most iconic question in all of display land: is something actually plugged in or not πŸ’–


✨ NAME ✨

amdgpu_dm_connector_detect β€” literally just detecting whether a DRM connector is connected to a display, no cap πŸ–₯️✨


🌸 SYNOPSIS 🌸

enum drm_connector_status amdgpu_dm_connector_detect (struct
drm_connector *connector , bool force );

πŸŽ€ ARGUMENTS πŸŽ€

  • connector β€” the DRM connector we're checking, bestie. we convert it to an amdgpu_dm_connector so we can read the DC link and state. it's giving "let me get a better look at you" πŸ‘€
  • force β€” if true, do a full detect again. this one gets used even when a lighter check would normally be the move, specifically to avoid flicker. highkey a glow-up for your eyeballs ✨

πŸ’– DESCRIPTION πŸ’–

so a connector counts as connected when it has a sink that is not NULL. that's the whole vibe check, fr fr 🫢

for connectors that support HPD (hotplug detection), the connection situation is handled in the HPD interrupt β€” she's got people for that πŸ’…

for connectors that may not support HPD, like analog connectors, DRM will call this function repeatedly to poll them. yes, repeatedly. she's persistent and we love her for it πŸ•΅οΈβ€β™€οΈ


🌈 NOTES 🌈

  1. this interface is NOT called in context of HPD irq. read that again. not. 🚫
  2. this interface *is called* in context of user-mode ioctl. which makes it a bad place for *any* MST-related activity. like, do not. seriously. 🫠
bestie the italics in note 2 are not decorative, they are a whole warning 🚨

⭐ RETURN ⭐

the connector status β€” which is one of: connected, disconnected, or unknown. that's it, that's the tea πŸ“


πŸ¦‹ SEE ALSO πŸ¦‹

go read those next, iykyk πŸ“šπŸ‘‘


and that's the whole page! source/version: ./drivers/gpu/drm/amd/display/..., dated October 2026, filed under amdgpu_dm_connector_detect(9). periodt. πŸ’œπŸŒ™

πŸ“¦ where this page comes from