函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static inline int encode_cpu(int cpu_nr)

返回类型:int

参数:

类型参数名称
intcpu_nr
22  返回:cpu_nr加1
调用者
名称描述
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