drm_dp_mst_t...ogy_get_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_dp_mst_topology_get_port(9) β€” the kernel API manual, bestie edition πŸŽ€

Okay so this is a page from the Kernel API Manual, and it's all about drm_dp_mst_topology_get_port. It's short, it's sweet, and it's lowkey important. Let's get into it. ✨


✨ NAME ✨

drm_dp_mst_topology_get_port β€” increments the topology refcount of a port. That's it, that's the whole vibe. 🫢


🌸 SYNOPSIS 🌸

void drm_dp_mst_topology_get_port (struct drm_dp_mst_port *port );

Like, that's the whole call. No return value, no drama. Just vibes and a pointer. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • port β€” the struct drm_dp_mst_port whose topology refcount you're about to bump up. This is the main character of the whole page, honestly. ⭐

πŸ’– DESCRIPTION πŸ’–

So what this does is it increments drm_dp_mst_port.topology_refcount β€” and here's the thing, it does it without checking whether or not it's already reached 0. No vibe check, no guard rail, it just goes. 😭

⚠️ Bestie, listen. This is only valid to use in scenarios where you are already guaranteed to have at least one active topology reference to port. That's the whole condition, no cap. If you don't have that guarantee, you must use drm_dp_mst_topology_try_get_port instead. Periodt. 🫑

See also: drm_dp_mst_topology_try_get_port, drm_dp_mst_topology_put_port β€” the two besties this function always gets mentioned with. 🧚


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/display/drm_dp_mst_topology.c, plus the gang:

Like, that's a lot of friends. It's giving extremely well-connected function energy. πŸ‘‘πŸŒˆ


okay that's the whole page, you ate that πŸ’…βœ¨

Signed off with love from ./drivers/gpu/drm/display, dated October 2026, and formally known as drm_dp_mst_t...ogy_get_port(9) β€” yes the name got truncated, yes it's still iconic, we don't talk about it πŸ™ˆπŸ’œ

πŸ“¦ where this page comes from