drm_dp_downstream_is_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_dp_downstream_is_type(9)

okay bestie, welcome to the Kernel API Manual ✨ this one's the drm_dp_downstream_is_type(9) page and honestly? it's a little cutie. she's a bool, she's a vibe check for your DisplayPort's downstream-facing port, and she's here to answer exactly one question: is this port giving the type i asked about? πŸŽ€


🌸 NAME 🌸

drm_dp_downstream_is_type β€” literally asking: is the downstream facing port of a certain type? πŸ‘€


✨ SYNOPSIS ✨

bool drm_dp_downstream_is_type (const u8 dpcd[DP_RECEIVER_CAP_SIZE] ,
const u8 port_cap[4] , u8 type );

bestie she takes three things and gives you back a bool, slay 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dpcd β€” the DisplayPort configuration data. yeah. that. the whole DPCD situation πŸ’«
  • port_cap β€” port capabilities. 4 bytes of pure potential, ngl.
  • type β€” the port type you're checking for. she can be any of these iconic icons:
    • DP_DS_PORT_TYPE_DP
    • DP_DS_PORT_TYPE_VGA
    • DP_DS_PORT_TYPE_DVI
    • DP_DS_PORT_TYPE_HDMI
    • DP_DS_PORT_TYPE_NON_EDID
    • DP_DS_PORT_TYPE_DP_DUALMODE
    • DP_DS_PORT_TYPE_WIRELESS

pick your fighter, fr fr 🌈


πŸ’œ DESCRIPTION πŸ’œ

⚠️ caveat incoming, bestie, don't skip this one: this only works with DPCD 1.1+ port caps. like. only. no cap. older DPCD? she simply cannot, and will not. πŸ’€

πŸ“ RETURN πŸ“

returns whether the downstream facing port matches the type. yes. that's the whole answer. she said yes or no and nothing else πŸ’…βœ¨


🧚 SEE ALSO 🧚

okay so this is the part where the whole group chat gets tagged 🫢 and there are a lot of them. iykyk. present them all, no skipping, periodt πŸ‘‘

like. the way that list just keeps going 😭 but we got through it, together πŸ’–


cute lil sign-off time πŸŽ€ this page lives in ./drivers/gpu/drm/display, dated October 2026, and it's main character energy all the way down. go check your DPCD version before you @ her, bestie. mwah πŸ’‹ πŸ’…βœ¨πŸ¦‹πŸŒΈ
πŸ“¦ where this page comes from