msm_disp_sna...t_state_sync(9)
π 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:
- kernel file
./drivers/gpu/drm/msm/disp/msm_disp_snapshot.h struct msm_disp_state(9)β the main character πstruct msm_disp_state_block(9)msm_disp_snapshot_init(9)msm_disp_snapshot_destroy(9)msm_disp_snapshot_state(9)msm_disp_state_print(9)msm_disp_snapshot_capture_state(9)msm_disp_state_free(9)msm_disp_snapshot_add_block(9)
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
- 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