drm_dp_tunnel_detect(9)
π drm_dp_tunnel_detect(9) π
okay so this is a page from the Kernel API Manual (yes, the kernel has lore too) and it's all about drm_dp_tunnel_detect β the little function that goes "hiii is there a DP tunnel on this link??" π¦
β¨ NAME β¨
drm_dp_tunnel_detect β bestie, it detects a DP tunnel on the link π
πΈ SYNOPSIS πΈ
struct drm_dp_tunnel * drm_dp_tunnel_detect (struct drm_dp_tunnel_mgr
*mgr , struct drm_dp_aux *aux );
like literally that's the whole signature, no notes π«Ά
π ARGUMENTS π
mgrβ the tunnel manager, aka the main character holding the tunnel group together πauxβ the DP AUX that the tunnel gets detected on, that's the spot we're checking π
β DESCRIPTION β
so what it does is: it checks whether there's any DP tunnel on the link, and if there is one, it adds it to the tunnel group's tunnel list. that's it, that's the vibe β¨
Returns a pointer to a tunnel on success, or an ERR_PTR error on failure. no cap β success gives you the tunnel, failure gives you an error pointer, so check it before you go touching anything π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/display/drm_dp_tunnel.c β the source, the origin story, the mothership π
and the whole friend group, no one gets left out:
drm_dp_tunnel_get(9)drm_dp_tunnel_put(9)drm_dp_tunnel_set_io_error(9)drm_dp_tunnel_destroy(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)
and that's the page!! mwah π this one lives in ./drivers/gpu/drm/display, dated October 2026, and it's filed under drm_dp_tunnel_detect(9) β go forth and detect those tunnels bestie, iykyk π§ββοΈπ
π¦ 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