drm_modeset...nterruptible(9)
π drm_modeset...nterruptible(9) π
ok so this is a page from the Kernel API Manual bestie, and we're talking about drm_modeset_lock_single_interruptible β yes the name is a whole mouthful, the manpage header literally abbreviates it to drm_modeset...nterruptible(9) because even the docs gave up π. anyway. it's a DRM modeset locking thing. let's get into it π
β¨ NAME β¨
drm_modeset_lock_single_interruptible β take a single modeset lock π«Ά
like literally just one (1) lock. singular. iconic.
πΈ SYNOPSIS πΈ
int drm_modeset_lock_single_interruptible (struct drm_modeset_lock *lock
);
it returns an int, it takes a pointer to a struct drm_modeset_lock named lock, that's the whole vibe β¨
π¦ ARGUMENTS π¦
lockβ the lock to take. that's it. that's the argument. the lock you want. go get it bestie π
π₯ DESCRIPTION π₯
okay so here's the tea β β this function behaves exactly like drm_modeset_lock with a NULL context, BUT (and this is the main character detail) it performs interruptible waits.
so like, same energy as drm_modeset_lock with NULL context, but if you're waiting on it, you can be interrupted. no cap. π
it returns0on success, or-ERESTARTSYSwhen interrupted. those are the only two moods. π
β SEE ALSO β
- Kernel file
./drivers/gpu/drm/drm_modeset_lock.cβ that's where the code lives, go read it iykyk π kms locking(9)drm_modeset_lock_all(9)drm_modeset_unlock_all(9)drm_warn_on_modeset_not_all_locked(9)drm_modeset_acquire_init(9)drm_modeset_acquire_fini(9)drm_modeset_drop_locks(9)drm_modeset_backoff(9)drm_modeset_lock_init(9)drm_modeset_lock(9)drm_modeset_unlock(9)drm_modeset_lock_all_ctx(9)
like the whole modeset lock friend group fr fr π
ok that's the page!! this one's from the Kernel API Manual, source dir ./drivers/gpu/drm, dated October 2026 β mwah, slay, periodt, go take your single lock responsibly ππ
β¨
π¦ 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