Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\qrwlock.c Create Date:2022-07-28 09:53:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:queued_read_lock_slowpath - acquire read lock of a queue rwlock*@lock: Pointer to queue rwlock structure

Proto:void queued_read_lock_slowpath(struct qrwlock *lock)

Type:void

Parameter:

TypeParameterName
struct qrwlock *lock
26  If Value for the false possibility is greater at compile time(in_interrupt()) Then
33  atomic_cond_read_acquire( & cnts, !(VAL & A writer holds the lock ))
34  Return
36  atomic_sub(_QR_BIAS, & cnts)
41  r sched/core.c and kernel_lock.c: ( & wait_lock)
42  atomic_add(_QR_BIAS, & cnts)
49  atomic_cond_read_acquire( & cnts, !(VAL & A writer holds the lock ))
54  arch_spin_unlock( & wait_lock)