1RESERVATION_OBJECT_T(9)  Device drivers infrastructure RESERVATION_OBJECT_T(9)
2
3
4

NAME

6       reservation_object_trylock - trylock the reservation object
7

SYNOPSIS

9       bool reservation_object_trylock(struct reservation_object * obj);
10

ARGUMENTS

12       obj
13           the reservation object
14

DESCRIPTION

16       Tries to lock the reservation object for exclusive access and
17       modification. Note, that the lock is only against other writers,
18       readers will run concurrently with a writer under RCU. The seqlock is
19       used to notify readers if they overlap with a writer.
20
21       Also note that since no context is provided, no deadlock protection is
22       possible.
23
24       Returns true if the lock was acquired, false otherwise.
25
27Kernel Hackers Manual 3.10         June 2019           RESERVATION_OBJECT_T(9)
Impressum