STRUCT DRM_MODESET_LOCK(9)
π
struct drm_modeset_lock(9) π
okay so bestie, this is the Kernel API Manual page for struct drm_modeset_lock, and it's literally the struct for locking modeset resources. no cap, it's giving βhold my lockβ energy. π
πΈ NAME πΈ
struct drm_modeset_lock β used for locking modeset resources. periodt. π
β¨ SYNOPSIS β¨
struct drm_modeset_lock {
struct ww_mutex mutex;
struct list_head head;
};
π§© Members π§©
mutexβ resource locking. that's the whole assignment, and it ate. π₯headβ used to hold its place ondrm_atomi_state.lockedlist when part of an atomic update. iconic list-holding behavior, fr fr π¦
π Description π
Used for locking CRTCs and other modeset resources. lowkey simple, but it's the lock vibe for CRTCs and the rest of the modeset crew. β¨
π₯ SEE ALSO π₯
- Kernel file
./include/drm/drm_modeset_lock.h struct drm_modeset_acquire_ctx(9)drm_modeset_lock_fini(9)drm_modeset_is_locked(9)drm_modeset_lock_assert_held(9)DRM_MODESET_LOCK_ALL_BEGIN(9)DRM_MODESET_LOCK_ALL_END(9)
These are the besties to check next β the whole lock squad is linked. π
xoxo from the ./include/drm source, October 2026 β bye 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