i915_request_wait_timeout(9)
π i915_request_wait_timeout(9) π
okay so bestie, welcome to the Kernel API Manual β we're in i915_request_wait_timeout land today and honestly? it's giving "patiently waiting for your group chat to reply" energy. sit down, hydrate, let's go β¨
πΈ NAME πΈ
i915_request_wait_timeout β wait until execution of request has finished π«Ά
β¨ SYNOPSIS β¨
long i915_request_wait_timeout (struct i915_request *rq , unsigned int
flags , long timeout );
π ARGUMENTS π
rqβ the request to wait upon π like, this is the main character, the thing we're staring at until it's doneflagsβ how to wait π¦ the vibe of your waiting, basicallytimeoutβ how long to wait in jiffies β³ not seconds, not vibes, jiffies, okay?
π DESCRIPTION π
i915_request_wait_timeout waits for the request to be completed, for a maximum of timeout jiffies β and yes, bestie, MAX_SCHEDULE_TIMEOUT implies an unbounded wait, i.e. "we'll be here forever, no cap" π
It returns the remaining time (in jiffies) if the request completed β which, plot twist, may be zero if the request is still unfinished after the timeout expires. Zero! Iconic but rude. π«
If the timeout is 0, it will return 1 if the fence is signaled. tiny little edge case, highkey important π
May return -EINTR is called with I915_WAIT_INTERRUPTIBLE and a signal is pending before the request completes π¨ (yes, that's exactly how the original words it β -EINTR is, is called, we don't fix what we didn't break π)
β NOTE β
This function has the same wait semantics as dma-fence. so if you know her, you know this one β iykyk π§
π₯ 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(9)
all the cousins, all slaying in their own lanes π¦π
π real talk reminder:-EINTRonly shows up when you passI915_WAIT_INTERRUPTIBLEand a signal is already pending before the request completes. that's the whole deal, no extras, periodt.
okay that's the page!! huge thank you to the source, which lives at ./drivers/gpu/drm/i915 and dated October 2026 β and the manual itself is i915_request_wait_timeout(9) in the Kernel API Manual. mwah, go touch grass, then come back and read the fence 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