Scroll to navigation

RESERVATION_OBJECT_G(9) Device drivers infrastructure RESERVATION_OBJECT_G(9)

NAME

reservation_object_get_fences_rcu - Get an object's shared and exclusive fences without update side lock held

SYNOPSIS

int reservation_object_get_fences_rcu(struct reservation_object * obj, struct dma_fence ** pfence_excl, unsigned * pshared_count, struct dma_fence *** pshared);

ARGUMENTS

obj

the reservation object

pfence_excl

the returned exclusive fence (or NULL)

pshared_count

the number of shared fences returned

pshared

the array of shared fence ptrs returned (array is krealloc'd to the required size, and must be freed by caller)

DESCRIPTION

Retrieve all fences from the reservation object. If the pointer for the exclusive fence is not specified the fence is put into the array of the shared fences as well. Returns either zero or -ENOMEM.

COPYRIGHT

June 2024 Kernel Hackers Manual 3.10