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

NAME

6       reservation_object_lock - lock the reservation object
7

SYNOPSIS

9       int reservation_object_lock(struct reservation_object * obj,
10                                   struct ww_acquire_ctx * ctx);
11

ARGUMENTS

13       obj
14           the reservation object
15
16       ctx
17           the locking context
18

DESCRIPTION

20       Locks the reservation object for exclusive access and modification.
21       Note, that the lock is only against other writers, readers will run
22       concurrently with a writer under RCU. The seqlock is used to notify
23       readers if they overlap with a writer.
24
25       As the reservation object may be locked by multiple parties in an
26       undefined order, a #ww_acquire_ctx is passed to unwind if a cycle is
27       detected. See ww_mutex_lock and ww_acquire_init. A reservation object
28       may be locked by itself by passing NULL as ctx.
29
31Kernel Hackers Manual 3.10         June 2019           RESERVATION_OBJECT_L(9)
Impressum