Scroll to navigation

RESERVATION_OBJECT_T(9) Device drivers infrastructure RESERVATION_OBJECT_T(9)

NAME

reservation_object_trylock - trylock the reservation object

SYNOPSIS

bool reservation_object_trylock(struct reservation_object * obj);

ARGUMENTS

obj

the reservation object

DESCRIPTION

Tries to lock the reservation object for exclusive access and modification. Note, that the lock is only against other writers, readers will run concurrently with a writer under RCU. The seqlock is used to notify readers if they overlap with a writer.

Also note that since no context is provided, no deadlock protection is possible.

Returns true if the lock was acquired, false otherwise.

COPYRIGHT

June 2023 Kernel Hackers Manual 3.10