STRUCT DRM_EXEC(9)
β¨ struct drm_exec(9) β¨
okay so bestie, welcome to the manual page for struct drm_exec β the execution context π
it lives in the Kernel API Manual and honestly? it's giving main character energy for lock acquisition iykyk.
π NAME π
struct drm_exec β the Execution context, no cap π
β¨ SYNOPSIS β¨
here's the whole vibe, literally character for character, don't touch it bestie:
struct drm_exec {
u32 flags;
struct ww_acquire_ctx ticket;
unsigned int num_objects;
unsigned int max_objects;
struct drm_gem_object **objects;
struct drm_gem_object *contended;
struct drm_gem_object *prelocked;
};
πΈ Members πΈ
okay so let's meet the cast, one by one, they all serve π«Ά
flagsβ the Flags to control locking behavior. yes queen, tell the locking how to behave πticketβ the WW ticket used for acquiring locks. your lil entry pass for the lock party ποΈβ¨num_objectsβ number of objects locked. literally the count of how many we've got π₯max_objectsβ maximum objects in array. the ceiling, the limit, the cap πobjectsβ array of the locked objects. the whole squad, in array form πcontendedβ contended GEM object we backed off for. yeah we stepped back for this one πprelockedβ already locked GEM object due to contention. it came pre-locked because of the contention situation, periodt β
π¦ SEE ALSO π¦
ngl you're gonna want the whole friend group, they're all in the Kernel file ./include/drm/drm_exec.h:
drm_exec_obj(9)drm_exec_for_each_locked_object(9)drm_exec_for_each_locked_object_reverse(9)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 whole page bestie! this icon dropped out of ./include/drm, dated October 2026, and it goes by struct drm_exec(9) β the way that date is in the future is lowkey iconic, slay πππ
π¦ 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