SYNOPSIS
- int fence_add_callback(struct fence * fence, struct fence_cb * cb, fence_func_t func);
ARGUMENTS
fence
- [in] the fence to wait on
cb
- [in] the callback to register
func
- [in] the function to call
DESCRIPTION
Note that the callback can be called from an atomic context. If fence is already signaled, this function will return -ENOENT (and *not* call the callback)
Add a software callback to the fence. Same restrictions apply to refcount as it does to fence_wait, however the caller doesn't need to
KEEP A REFCOUNT TO FENCE AFTERWARDS
when software access is enabled, the creator of the fence is required to keep the fence alive until after it signals with fence_signal. The callback itself can be called from irq context.
COPYRIGHT