xe_validation_should_retry(9)
π xe_validation_should_retry β the glazed donut of kernel API manuals
okay bestie, welcome to the xe_validation_should_retry(9) page, straight out of the Kernel API Manual β¨ this one's a tiny little function but she's lowkey important, so let's get into it π«Ά
β¨ NAME β¨
xe_validation_should_retry β literally just: determine if a validation transaction should retry π
πΈ SYNOPSIS πΈ
bool xe_validation_should_retry (struct xe_validation_ctx *ctx , int
*ret );
that's the whole vibe, no cap π
π¦ ARGUMENTS π¦
ctxβ the validation transaction itself. she's the main character here πretβ a pointer to a return value variable. yes queen, we're writing through a pointer π
π DESCRIPTION π
so here's the tea β this function determines whether a validation transaction should retry β and it makes that call based on the internal transaction state plus the return value pointed to by ret.
if a validation should be retried, the transaction is prepared for that, and the validation lock might be re-locked in exclusive mode, and *ret is set to 0 β¨
if the re-locking errors β typically because of interruptible locking with a signal pending β then *ret is instead set to -EINTR and the function returns false. not the slay we wanted, but okay π
heads up: that interruptible-locking-with-signal-pending case is the classic reason you'll get -EINTR back, so don't be surprised when it shows up, iykyk π
π₯ RETURN π₯
true if validation should be retried, false otherwise. that's it, that's the whole answer, periodt π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_validation.cβ go read the source bestie, it's giving iconic xe_validation_assert_exec(9)xe_validation_ctx_init(9)xe_validation_exec_lock(9)xe_validation_ctx_fini(9)
and that's a wrap, bestie π this lil page lives over in ./drivers/gpu/drm/xe, dated October 2026, from the Kernel API Manual β mwah, go forth and retry responsibly ππ¦πΈ
π¦ 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