drm_exec_fo...ocked_object(9)
π drm_exec_fo...ocked_object(9) β from the Kernel API Manual, bestie
okay so picture this: it's a kernel API manual page, it's October 2026 in ./include/drm, and we're about to learn a macro together. stay with me, it's gonna slay π
β¨ NAME β¨
drm_exec_for_each_locked_object β literally just iterate over all the locked objects. that's the whole vibe. π
πΈ SYNOPSIS πΈ
drm_exec_for_each_locked_object (exec , obj );
yes the spacing is like that, don't come for me, I don't make the rules π
π¦ ARGUMENTS π¦
execβ thedrm_execobject. your container, your main character, the whole reason we're here π«Άobjβ the current GEM object. this is the one you get handed on every loop trip around the sun β¨
π DESCRIPTION π
okay so here's the tea: this bad boy iterates over all the explicitly locked GEM objects inside the drm_exec container. all of them. every single one. no cap. π₯
but! and this is the important part β it skips the contended one and it skips the implicit prelocked one. those two are NOT invited to this party π not on the list, not getting in, the bouncer knows their faces.
so like, explicitly locked = yes bestie, contended and implicit prelocked = not today. got it? iconic. periodt. π
β SEE ALSO β
- Kernel file
./include/drm/drm_exec.hstructdrm_exec(9)β the mothership, start here π§ drm_exec_obj(9)drm_exec_for_each_locked_object_reverse(9)β same energy, opposite direction, we love a remix πdrm_exec_until_all_locked(9)drm_exec_retry_on_contention(9)drm_exec_is_contended(9)drm_exec_retry(9)drm_exec_ticket(9)
and that's the page!! π go forth and iterate responsibly. this lil love letter came to you straight from ./include/drm and it's dated October 2026 β remember us fondly, mwah ππ¦β¨
π¦ 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