drm_modeset_is_locked(9)
π drm_modeset_is_locked(9)
okay so bestie, welcome to the Kernel API Manual β this one's a lil baby page but she's iconic in her own way, trust π«Ά It's drm_modeset_is_locked(9), and she does exactly one (1) thing. Lowkey queen of not overdelivering.
β¨ NAME β¨
drm_modeset_is_locked β bestie, she's literally equivalent to mutex_is_locked(). that's the whole vibe check. no cap π
πΈ SYNOPSIS πΈ
bool drm_modeset_is_locked (struct drm_modeset_lock *lock );
likeβ¦ that's it. that's the function. she returns a bool, she takes one pointer, she's low maintenance π
π¦ ARGUMENTS π¦
lockβ the lock to check π that's it, that's the argument. you hand her the lock, she tells you what's up.
π SEE ALSO π
the whole friend group, fr fr β go say hi to:
drm_modeset_acquire_ctx(9)drm_modeset_lock(9)drm_modeset_lock_fini(9)drm_modeset_lock_assert_held(9)DRM_MODESET_LOCK_ALL_BEGIN(9)DRM_MODESET_LOCK_ALL_END(9)
and the header file herself lives at ./include/drm/drm_modeset_lock.h β struct drm_modeset_acquire_ctx(9) and struct drm_modeset_lock(9) are both hanging out in there, main character energy β¨
ngl, this page is short enough to read in one breath β but every detail still counts, so don't skip the friends list bestie π
and that's the whole page, mwah π this cutie is from ./include/drm, stamped October 2026, and she's filed under drm_modeset_is_locked(9) in the Kernel API Manual. slay, go check your locks π§ββοΈπ
π¦ 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