drm_modeset_is_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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