STRUCT DRM_EXEC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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