table of contents
other versions
FENCE_WAIT_ANY_TIMEO(9) | Device drivers infrastructure | FENCE_WAIT_ANY_TIMEO(9) |
NAME¶
fence_wait_any_timeout - sleep until any fence gets signaled or until timeout elapsesSYNOPSIS¶
signed long
fence_wait_any_timeout(struct fence ** fences,
uint32_t count, bool intr,
signed long timeout);
ARGUMENTS¶
fences[in] array of fences to wait on
count
[in] number of fences to wait on
intr
[in] if true, do an interruptible wait
timeout
[in] timeout value in jiffies, or
MAX_SCHEDULE_TIMEOUT
DESCRIPTION¶
Returns -EINVAL on custom fence wait implementation, -ERESTARTSYS if interrupted, 0 if the wait timed out, or the remaining timeout in jiffies on success. Synchronous waits for the first fence in the array to be signaled. The caller needs to hold a reference to all fences in the array, otherwise a fence might be freed before return, resulting in undefined behavior.COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |