drm_dp_tunnel_destroy(9)
π 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:
0on success β slay, it worked π-ENODEVif 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 π):
drm_dp_tunnel_get(9)drm_dp_tunnel_put(9)drm_dp_tunnel_set_io_error(9)drm_dp_tunnel_detect(9)drm_dp_tunnel_enable_bw_alloc(9)drm_dp_tunnel_disable_bw_alloc(9)drm_dp_tunnel_bw_alloc_is_enabled(9)drm_dp_tunnel_pr_optimization_supported(9)drm_dp_tunnel_alloc_bw(9)drm_dp_tunnel_get_allocated_bw(9)drm_dp_tunnel_update_state(9)drm_dp_tunnel_128b132b_supported(9)drm_dp_tunnel_128b132b_lane0_mapping_supported(9)drm_dp_tunnel_128b132b_dprx_rates(9)drm_dp_tunnel_max_dprx_rate(9)drm_dp_tunnel_max_dprx_lane_count(9)drm_dp_tunnel_available_bw(9)drm_dp_tunnel_atomic_get_state(9)drm_dp_tunnel_atomic_get_old_state(9)drm_dp_tunnel_atomic_get_new_state(9)drm_dp_tunnel_atomic_set_stream_bw(9)drm_dp_tunnel_atomic_get_required_bw(9)drm_dp_tunnel_atomic_get_group_streams_in_state(9)drm_dp_tunnel_atomic_check_stream_bws(9)drm_dp_tunnel_mgr_create(9)drm_dp_tunnel_mgr_destroy(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms