Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:We use the value 0 to represent "no CPU", thus the encoded value* will be the CPU number incremented by 1.

Proto:static inline int encode_cpu(int cpu_nr)

Type:int

Parameter:

TypeParameterName
intcpu_nr
22  Return cpu_nr + 1
Caller
NameDescribe
osq_wait_nextGet a stable @node->next pointer, either for unlock() or unqueue() purposes.* Can return NULL in case we were the last queued and we updated @lock instead.
osq_lock
osq_unlock