/** * xe_preempt_fence_link() - Return a link used to keep unarmed preempt * fences on a list. * @pfence: Pointer to the preempt fence. * * The link is embedded in the struct xe_preempt_fence. Use * link_to_preempt_fence() to convert back to the preempt fence. * * Return: A pointer to an embedded struct list_head.
*/ staticinlinestruct list_head *
xe_preempt_fence_link(struct xe_preempt_fence *pfence)
{ return &pfence->link;
}
/** * to_preempt_fence_from_link() - Convert back to a preempt fence pointer * from a link obtained with xe_preempt_fence_link(). * @link: The struct list_head obtained from xe_preempt_fence_link(). * * Return: A pointer to the embedding struct xe_preempt_fence.
*/ staticinlinestruct xe_preempt_fence *
to_preempt_fence_from_link(struct list_head *link)
{ return container_of(link, struct xe_preempt_fence, link);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.