函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\osq_lock.c Create Date:2022-07-27 10:51:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:decode_cpu

函数原型:static inline struct optimistic_spin_node *decode_cpu(int encoded_cpu_val)

返回类型:struct optimistic_spin_node

参数:

类型参数名称
intencoded_cpu_val
32  cpu_nr等于encoded_cpu_val减1
34  返回:per_cpu_ptr( & An MCS like lock especially tailored for optimistic spinning for sleeping* lock implementations (mutex, rwsem, etc), cpu_nr)
调用者
名称描述
osq_lock