- signed long fence_wait_any_timeout(struct fence ** fences, uint32_t count, bool intr, signed long timeout);
- [in] array of fences to wait on
- [in] number of fences to wait on
- [in] if true, do an interruptible wait
- [in] timeout value in jiffies, or MAX_SCHEDULE_TIMEOUT
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.