Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\futex.c Create Date:2022-07-28 10:53:45
Last Modify:2020-03-17 15:28:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lookup_pi_state

Proto: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)

Type:int

Parameter:

TypeParameterName
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  If top_waiter Then Return 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  Return Lookup the task for the TID provided from user space and attach to* it after doing proper sanity checks.
Caller
NameDescribe
futex_requeueex_requeue() - Requeue waiters from uaddr1 to uaddr2*@uaddr1: source futex user address*@flags: futex flags (FLAGS_SHARED, etc