drm_dp_tunne...ic_get_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🫢:


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