SYNOPSIS
- void fence_init(struct fence * fence, const struct fence_ops * ops, spinlock_t * lock, unsigned context, unsigned seqno);
ARGUMENTS
fence
- [in] the fence to initialize
ops
- [in] the fence_ops for operations on this fence
lock
- [in] the irqsafe spinlock to use for locking this fence
context
- [in] the execution context this fence is run on
seqno
- [in] a linear increasing sequence number for this context
DESCRIPTION
context and seqno are used for easy comparison between fences, allowing to check which fence is later by simply using fence_later.
COPYRIGHT