drm_client_m...ommit_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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


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