drm_dp_tunne...ic_get_state(9)
π drm_dp_tunnel_atomic_get_state(9) π
okay bestie so this is a page straight out of the Kernel API Manual, section 9, and the star of the show is literally called drm_dp_tunnel_atomic_get_state β lowkey a mouthful but she ate π
β¨ NAME β¨
drm_dp_tunnel_atomic_get_state β get/allocate the new atomic state for a tunnel π
π¦ SYNOPSIS π¦
struct drm_dp_tunnel_state * drm_dp_tunnel_atomic_get_state (struct drm_atomic_commit *state , struct drm_dp_tunnel *tunnel );
like... look at her. iconic signature, no cap β¨
πΈ ARGUMENTS πΈ
stateβ the atomic state, obviously πtunnelβ the tunnel you're grabbing the state for π«Ά
π DESCRIPTION π
So here's the vibe: this function gets the new atomic state for tunnel, and if that state hasn't been allocated yet, she duplicates it from the old tunnel state β like, she's not gonna leave you hanging with a NULL, she makes a copy from the previous one first. main character energy fr fr π
Then she returns the state, or an ERR_PTR error on failure. that's it. that's the whole thing. ERR_PTR on failure, so like... check it, bestie, don't just assume π
π SEE ALSO π
the whole friend group, gathered for you π«Ά:
- Kernel file
./drivers/gpu/drm/display/drm_dp_tunnel.c 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_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_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)
ngl that's a whole group chat of tunnel functions and every single one of them is invited ππ
and that's the page, bestie!! π§β¨ this lil beauty lives in ./drivers/gpu/drm/display, and she's dated October 2026 β yes, the future, she's ahead of her time π
π mwah, go forth and get those atomic states ππ
π¦ 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