Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\qspinlock.h Create Date:2022-07-28 08:24:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:queued_fetch_set_pending_acquire

Proto:static __always_inline unsigned int queued_fetch_set_pending_acquire(struct qspinlock *lock)

Type:unsigned int

Parameter:

TypeParameterName
struct qspinlock *lock
23  val = GEN_BINARY_RMWcc(LOCK_PREFIX"btsl", counter, c, "I", _Q_PENDING_OFFSET) * _Q_PENDING_VAL
25  val |= atomic_read( & val) & ~_Q_PENDING_MASK
27  Return val
Caller
NameDescribe
queued_spin_lock_slowpathqueued_spin_lock_slowpath - acquire the queued spinlock*@lock: Pointer to queued spinlock structure*@val: Current value of the queued spinlock 32-bit word* (queue tail, pending bit, lock value)* fast : slow : unlock* : :* uncontended (0,0,0) -:--> (0,0,1)