1RESERVATION_OBJECT_L(9) Device drivers infrastructure RESERVATION_OBJECT_L(9)
2
3
4
6 reservation_object_lock_interruptible - lock the reservation object
7
9 int
10 reservation_object_lock_interruptible(struct reservation_object * obj,
11 struct ww_acquire_ctx * ctx);
12
14 obj
15 the reservation object
16
17 ctx
18 the locking context
19
21 Locks the reservation object interruptible for exclusive access and
22 modification. Note, that the lock is only against other writers,
23 readers will run concurrently with a writer under RCU. The seqlock is
24 used to notify readers if they overlap with a writer.
25
26 As the reservation object may be locked by multiple parties in an
27 undefined order, a #ww_acquire_ctx is passed to unwind if a cycle is
28 detected. See ww_mutex_lock and ww_acquire_init. A reservation object
29 may be locked by itself by passing NULL as ctx.
30
32Kernel Hackers Manual 3.10 June 2019 RESERVATION_OBJECT_L(9)