table of contents
RESERVATION_OBJECT_L(9) | Device drivers infrastructure | RESERVATION_OBJECT_L(9) |
NAME¶
reservation_object_lock - lock the reservation object
SYNOPSIS¶
int reservation_object_lock(struct reservation_object * obj, struct ww_acquire_ctx * ctx);
ARGUMENTS¶
obj
the reservation object
ctx
the locking context
DESCRIPTION¶
Locks 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.
As the reservation object may be locked by multiple parties in an undefined order, a #ww_acquire_ctx is passed to unwind if a cycle is detected. See ww_mutex_lock and ww_acquire_init. A reservation object may be locked by itself by passing NULL as ctx.
COPYRIGHT¶
June 2024 | Kernel Hackers Manual 3.10 |