drm_modeset_unlock_all(9)
π drm_modeset_unlock_all π
okay so bestie, we're in the Kernel API Manual and this page is literally about dropping all the modeset locks πβ¨ it's giving cleanup era, but make it kernel.
πΈ NAME πΈ
drm_modeset_unlock_allβ drop all modeset locks, like, all of them π
β¨ SYNOPSIS β¨
void drm_modeset_unlock_all (struct drm_device *dev );
π ARGUMENTS π
devβ DRM device π«Ά that's the device you're working with, no cap.
π¦ DESCRIPTION π¦
okay so drm_modeset_unlock_all drops all the modeset locks that were taken by a previous call to the drm_modeset_lock_all function. previous call, bestie β don't forget that part π
π deprecated alert, fr fr: this function is deprecated. it still uses the lock acquisition context stored in drm_device.mode_config. that's lowkey convenient because it removes the need to manually deal with the acquisition context β which helps with conversion of existing code β but it's also brittle π because the context is global and care must be taken not to nest calls. global context + nested calls = not the vibe.
new code should pass the acquisition context directly to the drm_modeset_drop_locks function. that's the iconic move π new code, new context-passing behavior, periodt.
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/drm_modeset_lock.cβ that's where it lives, iykyk ποΈ kms locking(9)drm_modeset_lock_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_lock_single_interruptible(9)drm_modeset_unlock(9)drm_modeset_lock_all_ctx(9)
mwah π this page is sourced from ./drivers/gpu/drm, dated October 2026, and it's drm_modeset_unlock_all(9) from the Kernel API Manual. 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