msm_disp_sna...t_state_sync(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… msm_disp_snapshot_state_sync β€” the kernel API manual, bestie edition πŸŽ€

okay so before we even start β€” hi, this is from the Kernel API Manual, and it's about msm_disp_snapshot_state_sync. yes the function name is a whole mouthful, we're gonna get through it together, i promise 🫢


✨ NAME ✨

msm_disp_snapshot_state_sync β€” grab a snapshot of the display state, synchronously. like, you wait for it. no "i'll text you later" energy, we're doing this now πŸ’…


🌸 SYNOPSIS 🌸

struct msm_disp_state * msm_disp_snapshot_state_sync (struct msm_kms
*kms );

it hands you back a struct msm_disp_state * and it takes exactly one thing. so iconic, so simple 🌟


πŸ¦‹ ARGUMENTS πŸ¦‹

  • kms β€” the kms object. that's it. that's the whole list. she's low maintenance πŸ’–

⭐ RETURN ⭐

returns state β€” or an error. so like, either you get your little snapshot struct, or you get a "nope" 😭 that's the whole vibe check.


🧚 CONTEXT 🧚

okay this part is so important, do not skip it, i'm serious:

must be called with kms->dump_mutex held πŸ”’

like literally do not call this without holding that mutex, that's the rule, that's the assignment, periodt πŸ‘‘


🌈 SEE ALSO 🌈

the whole friend group, fr fr:

they're all linked, they all matter, go read them, iykyk πŸ’œ


ok and one little sign-off before you go β€” this page lives under ./drivers/gpu/drm/msm/disp and it's dated October 2026. yes, october 2026. she's from the future and she's slaying πŸ¦‹βœ¨ mwah, study hard bestie πŸ’–πŸŽ€
πŸ“¦ where this page comes from