drm_atomic_...pology_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_atomic_get_old_mst_topology_state(9) πŸ’…

okay so bestie, welcome to the drm_atomic_...pology_state(9) page β€” yes that's the Kernel API Manual, and yes the title got a little truncated in the group chat, we don't talk about it 🫢. Anyway, this is the whole vibe of one tiny helper function, and honestly? It's giving "small but essential." Let's get into it ✨


🌸 NAME 🌸

drm_atomic_get_old_mst_topology_state β€” literally just "get old MST topology state in atomic state, if any." That's the whole mission. No cap πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

struct drm_dp_mst_topology_state * drm_atomic_get_old_mst_topology_state
(struct drm_atomic_commit *state , struct drm_dp_mst_topology_mgr *mgr
);

look at her. she's a function returning a struct drm_dp_mst_topology_state * and she takes exactly two things. iconic behavior only πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • state β€” the global atomic state. the main character of the whole situation, fr fr.
  • mgr β€” the MST topology manager. in this case it's also the private object, so she's doing double duty and honestly? slay πŸ’…

⭐ DESCRIPTION ⭐

so here's the tea β˜• β€” this function wraps drm_atomic_get_old_private_obj_state, passing in the MST atomic state vtable. why? so that the private object state you get back is actually that of an MST topology object, not just some random private object state. like, it shows up dressed correctly for the occasion πŸŽ€βœ¨

it's a wrapper. it's lowkey humble. it's doing exactly one job and doing it well, and we respect that 🫢


πŸ”₯ RETURN πŸ”₯

The old MST topology state πŸ’– β€” or, plot twist, NULL if there's no topology state for this MST mgr in the global atomic state. so always check before you go dereferencing, bestie, because the NULL is always lurking πŸ™ˆ


πŸ’œ SEE ALSO πŸ’œ

okay this list is LONG and it's basically the entire MST cinematic universe, so buckle up πŸ“. Also, quick note: the kernel file is ./drivers/gpu/drm/display/drm_dp_mst_topology.c.

like I said. whole cinematic universe. iykyk 🌈


and that's the page, bestie!! 🧚 this lovely little slice of Kernel API Manual lives in ./drivers/gpu/drm/display and it's dated October 2026 β€” so yeah, mark your calendar, she's from the future πŸ’€βœ¨ mwah, go read some atomic state, ily πŸ’–πŸ‘‘

πŸ“¦ where this page comes from