table of contents
FENCE_INIT(9) | Device drivers infrastructure | FENCE_INIT(9) |
NAME¶
fence_init - Initialize a custom fence.
SYNOPSIS¶
void fence_init(struct fence * fence, const struct fence_ops * ops, spinlock_t * lock, u64 context, unsigned seqno);
ARGUMENTS¶
fence
ops
lock
context
seqno
DESCRIPTION¶
Initializes an allocated fence, the caller doesn't have to keep its refcount after committing with this fence, but it will need to hold a refcount again if fence_ops.enable_signaling gets called. This can be used for other implementing other types of fence.
context and seqno are used for easy comparison between fences, allowing to check which fence is later by simply using fence_later.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |