i915_request_wait(9)
π i915_request_wait β bestie's guide to waiting on a GPU request
okay so, real talk: this is i915_request_wait from the Kernel API Manual, and it's literally the "pls finish ur homework so I can move on" function of the i915 world. Let's get into it β¨
πΈ SYNOPSIS πΈ
long i915_request_wait (struct i915_request *rq , unsigned int flags ,
long timeout );
three args, one return value, zero drama (wellβ¦ mostly, see the NOTE below π)
π ARGUMENTS π
rqβ the request you're waiting upon, aka the main character of this whole function πflagsβ how to wait. that's the vibe check: it tells the function which waiting mode you want π¦timeoutβ how long to wait, measured in jiffies β³
β¨ DESCRIPTION β¨
i915_request_wait waits for the request to be completed β but only for a maximum of timeout jiffies. and if you pass MAX_SCHEDULE_TIMEOUT, that means an unbounded wait, i.e. no cap at all, we're here forever until it's done ππ
so what does it give back? if the request completed, you get the remaining time (in jiffies) π« β which, heads up, may be zero. if the request is still unfinished after the timeout expires, you get -ETIME π
and one more: it may return -EINTR if it's called with I915_WAIT_INTERRUPTIBLE and a signal is pending before the request completes π (yes that's how it's worded, we're rolling with it)
β οΈ NOTE β οΈ
this function behaves differently from dma-fence wait semantics whentimeout = 0π it returns0on success, and-ETIMEif not signaled. not a drill, don't assume it matches the dma-fence vibe π
π«Ά SEE ALSO π«Ά
- Kernel file
./drivers/gpu/drm/i915/i915_request.c i915_request_active_engine(9)i915_request_free_capture_list(9)i915_request_await_deps(9)i915_request_await_object(9)i915_request_wait_timeout(9)
all the siblings, all iconic, go read them too ππ
and that's the whole thing bestie, no cap π§ from ./drivers/gpu/drm/i915, dated October 2026, manual page i915_request_wait(9) β slay, go wait on that request ππΈπ
π¦ 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