drm_dp_tunnel_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_dp_tunnel_destroy(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're fancy here ✨ β€” and today's main character is drm_dp_tunnel_destroy, which is literally the function that says "bye, tunnel, you're done."


🌸 NAME 🌸

drm_dp_tunnel_destroy β€” destroy the tunnel object, no cap 🫢


✨ SYNOPSIS ✨

int drm_dp_tunnel_destroy (struct drm_dp_tunnel *tunnel );

like, that's the whole signature, she's not complicated πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • tunnel β€” the tunnel object itself, the one we're about to send off into the void πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

So what does she actually do? She removes the tunnel from the tunnel topology and then destroys it. Two steps, one function, iconic behavior honestly ✨.

And the return situation? It's giving:

  • 0 on success β€” slay, it worked πŸŽ‰
  • -ENODEV if the tunnel has already been destroyed β€” like, it's already gone, bestie, there's nothing left to destroy πŸ˜­πŸ’€
fr fr, if you get -ENODEV back, that's your sign the tunnel already got destroyed. Don't double-destroy and then act surprised πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file that lives at ./drivers/gpu/drm/display/drm_dp_tunnel.c β€” that's where the vibes come from 🧚

And the whole tunnel friend group, in the order the manpage listed them (yes, I'm keeping all of them, I would never skip any of my girls πŸ’œ):


🌈 sign-off 🌈

This page came from ./drivers/gpu/drm/display, dated October 2026 β€” so yeah, she's a little time traveler, we stan 🌟

k bye, go destroy your tunnels responsibly πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from