STRUCT XE_VALIDATION_CTX(9)
π 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β thedrm_execobject 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 thestruct xe_val_flagsthat got passed toxe_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β thedrm_execflags used fordrm_exec(re-)initialization. yes, the re-initialization ones too πnrβ thedrm_execnrparameter, used fordrm_exec(re-)initialization. she's a pair withexec_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:
xe_validation_lockdep(9)struct xe_validation_device(9)struct xe_val_flags(9)xe_validation_retry_on_oom(9)xe_validation_device_init(9)xe_validation_guard(9)
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
- 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