drm_modeset_acquire_init(9)
π
drm_modeset_acquire_init(9) β Kernel API Manual π
okay so welcome to the drm_modeset_acquire_init(9) page in the Kernel API Manual, bestie π«Ά this is the little setup moment for an acquire context, and it's lowkey iconic.
πΈ NAME πΈ
drm_modeset_acquire_init β initialize acquire context π«
β¨ SYNOPSIS β¨
void drm_modeset_acquire_init (struct drm_modeset_acquire_ctx *ctx ,
uint32_t flags );
π ARGUMENTS π
ctxβ the acquire context. That's the main-character struct you're setting up, periodt πflagsβ0orDRM_MODESET_ACQUIRE_INTERRUPTIBLE. Those are literally the two options, no cap.
π¦ DESCRIPTION π¦
When you pass DRM_MODESET_ACQUIRE_INTERRUPTIBLE to flags, all calls to drm_modeset_lock will perform an interruptible wait. That's the whole tea ββ¨
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_modeset_lock.c kms locking(9)drm_modeset_lock_all(9)drm_modeset_unlock_all(9)drm_warn_on_modeset_not_all_locked(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)
okay bye bestie π«Ά this page lives under ./drivers/gpu/drm, is dated October 2026, and it's still literally drm_modeset_acquire_init(9) β periodt π
π¦ 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