STRUCT XE_VALIDATION_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct xe_validation_ctx(9)

okay so bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, that's the vibe now 🫢


✨ NAME ✨

struct xe_validation_ctx β€” a struct that's a drm_exec subclass, and it comes with support for exhaustive eviction. literally what it says on the tin, no cap πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

struct xe_validation_ctx {
    struct drm_exec *exec;
    struct xe_validation_device *val;
    struct xe_val_flags val_flags;
    bool lock_held;
    bool lock_held_exclusive;
    bool request_exclusive;
    u32 exec_flags;
    unsigned int nr;
 };

like... look at her. main character struct energy fr fr πŸ‘‘


πŸŽ€ Members πŸŽ€

okay let's go member by member, don't skip, we do NOT skip here:

  • exec β€” the drm_exec object base class, iconic. and nota bene bestie: we use a pointer instead of embedding it, specifically to avoid diamond inheritance. yes that's a real problem, yes the pointer is the slay πŸ’…
  • val β€” the exhaustive eviction domain. that's her whole thing 🌸
  • val_flags β€” a copy of the struct xe_val_flags that got passed to xe_validation_ctx_init. a lil keepsake πŸŽ€
  • lock_held β€” whether the domain lock is currently held. true/false, she's either locked or she's not πŸ’€
  • lock_held_exclusive β€” whether the domain lock is held in exclusive mode. fancy mode, exclusive mode ✨
  • request_exclusive β€” whether to lock exclusively (that's write mode, iykyk) the next time the domain lock gets locked. manifesting exclusive energy πŸ”₯
  • exec_flags β€” the drm_exec flags used for drm_exec (re-)initialization. yes, the re-initialization ones too 😭
  • nr β€” the drm_exec nr parameter, used for drm_exec (re-)initialization. she's a pair with exec_flags, they're besties 🫢

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/gpu/drm/xe/xe_validation.h β€” go read it, it's giving source of truth πŸ‘‘

and also these icons:

like a whole friend group honestly πŸ’œ


🧚 that's the whole page bestie, no crumbs left behind, every member accounted for, periodt πŸ’…

starring ./drivers/gpu/drm/xe, brought to you by October 2026 and the one and only struct xe_validation_ctx(9) β€” mwah, go touch some kernel code πŸ“πŸ’–

πŸ“¦ where this page comes from