函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\futex.c Create Date:2022-07-27 11:53:47
Last Modify:2020-03-17 15:28:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lookup_pi_state

函数原型:static int lookup_pi_state(unsigned int __user *uaddr, unsigned int uval, struct futex_hash_bucket *hb, union futex_key *key, struct futex_pi_state **ps, struct task_struct **exiting)

返回类型:int

参数:

类型参数名称
unsigned int __user *uaddr
unsigned intuval
struct futex_hash_bucket *hb
union futex_key *key
struct futex_pi_state **ps
struct task_struct **exiting
1365  top_waiter等于ex_top_waiter() - Return the highest priority waiter on a futex*@hb: the hash bucket the futex_q's reside in*@key: the futex key (to distinguish it from other futex futex_q's)* Must be called with the hb lock held.
1371  如果top_waiter则返回:Validate that the existing waiter has a pi_state and sanity check* the pi_state against the user space value. If correct, attach to* it.
1378  返回:Lookup the task for the TID provided from user space and attach to* it after doing proper sanity checks.
调用者
名称描述
futex_requeueex_requeue() - Requeue waiters from uaddr1 to uaddr2*@uaddr1: source futex user address*@flags: futex flags (FLAGS_SHARED, etc