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:decode_cpu

Proto:static inline struct optimistic_spin_node *decode_cpu(int encoded_cpu_val)

Type:struct optimistic_spin_node

Parameter:

TypeParameterName
intencoded_cpu_val
32  cpu_nr = encoded_cpu_val - 1
34  Return per_cpu_ptr( & An MCS like lock especially tailored for optimistic spinning for sleeping* lock implementations (mutex, rwsem, etc), cpu_nr)
Caller
NameDescribe
osq_lock