Name

fence_wait — sleep until the fence gets signaled

Synopsis

signed long fence_wait (struct fence * fence,
 bool intr);
 

Arguments

fence

[in] the fence to wait on

intr

[in] if true, do an interruptible wait

Description

This function will return -ERESTARTSYS if interrupted by a signal, or 0 if the fence was signaled. Other error values may be returned on custom implementations.

Performs a synchronous wait on this fence. It is assumed the caller directly or indirectly holds a reference to the fence, otherwise the fence might be freed before return, resulting in undefined behavior.