vmw_vkms_mo...lock_relaxed(9)
π vmw_vkms_modeset_lock_relaxed β like, the whole vibe β¨
okay so bestie, welcome to the Kernel API Manual π β this page is filed under vmw_vkms_mo...lock_relaxed(9) (yeah the name got truncated, the header did that, not me π) and it's all about one lil function that guards your crtc while a modeset is happening. she's lowkey the chill younger sibling of vmw_vkms_modeset_lock. let's get into it π«Ά
πΈ SYNOPSIS πΈ
bool vmw_vkms_modeset_lock_relaxed (struct drm_crtc *crtc );
that's it. that's the whole signature. she takes one thing and returns a bool, iconic behavior honestly π
π¦ ARGUMENTS π¦
crtcβ the crtc you wanna lock for vkms. that's the whole assignment. protect the crtc, bestie π
β¨ DESCRIPTION β¨
so here's the tea β β this function is much like vmw_vkms_modeset_lock, with one big main-character difference: if the crtc is currently in a modeset, she will return immediately. like, no waiting, no blocking, no "hold on let me finish." she peeks, sees it's busy, and bounces πββοΈπ¨
the return value is true if it actually locked vkms to modeset, or false otherwise. simple as that. no cap π―
ngl this is the "relaxed" one for a reason β if you were expecting her to wait her turn like the non-relaxed version, she is simply not doing that π
π SEE ALSO π
- the kernel file
./drivers/gpu/drm/vmwgfx/vmwgfx_vkms.cβ go read the source, it's giving lore π vmw_vkms_lock_max_wait_ns(9)vmw_vkms_modeset_lock(9)vmw_vkms_vblank_trylock(9)
the whole friend group fr fr π«Άβ¨
aaaand that's the page!! π source/version is ./drivers/gpu/drm/vmwgfx and she was dated October 2026 β so mark your calendar bestie, this one's from the future ππ mwah, go lock some crtcs 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