drm_client_m...ommit_locked(9)
π drm_client_m...ommit_locked β the Kernel API Manual, but make it make sense π
okay so bestie, welcome to drm_client_m...ommit_locked(9), a kernel API page that's gonna live in your brain rent-free. it's literally the "just do it" function for pushing a modeset config out to your CRTCs, no questions asked. let's get into it π
β¨ NAME β¨
drm_client_modeset_commit_locked β force commit that CRTC configuration, periodt π₯
πΈ SYNOPSIS πΈ
int drm_client_modeset_commit_locked (struct drm_client_dev *client);
π¦ ARGUMENTS π¦
clientβ the DRM client, your main character for this whole operation π
π DESCRIPTION π
so here's the vibe: this commits the modeset configuration to the crtcs without checking whether there's a DRM master hanging around. no vibe check, no ID check at the door β it just goes.
the whole assumption (and yes, assumption is doing a lot of heavy lifting here, so listen up) is that you, the caller, already hold an internal DRM master reference that you acquired with drm_master_internal_acquire. so if you didn't do that? that's a you problem, bestie π the lock is yours to bring, iykyk.
β RETURN β
0(zero) on success β slay, it worked π- a negative error code on failure β not slay, but at least it's honest π
π SEE ALSO π
kernel file ./drivers/gpu/drm/drm_client_modeset.c β the actual source, go read it fr fr
drm_client_modeset_probe(9)drm_client_rotation(9)drm_client_modeset_check(9)drm_client_modeset_commit(9)drm_client_modeset_dpms(9)drm_client_modeset_wait_for_vblank(9)
and that's the whole page, bestie β go forth and commit responsibly π«Ά
this iconic little slice of kernel lore comes to you courtesy of ./drivers/gpu/drm, dropping October 2026 β¨π
β save the date, mark your calendar, tell your friends π§
π¦ 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