函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:handle_early_requeue_pi_wakeup() - Detect early wakeup on the initial futex*@hb: the hash_bucket futex_q was original enqueued on*@q: the futex_q woken while waiting to be requeued*@key2: the futex_key of the requeue target futex*@timeout: the timeout

函数原型:static inline int handle_early_requeue_pi_wakeup(struct futex_hash_bucket *hb, struct futex_q *q, union futex_key *key2, struct hrtimer_sleeper *timeout)

返回类型:int

参数:

类型参数名称
struct futex_hash_bucket *hb
struct futex_q *q
union futex_key *key2
struct hrtimer_sleeper *timeout
3227  ret等于0
3236  如果非match_futex - Check whether two futex keys are equal*@key1: Pointer to key1*@key2: Pointer to key2* Return 1 if two futex_keys are equal, 0 otherwise.
3237  WARN_ON(lock_ptr && ( & lock != lock_ptr))
3242  从plist移除节点
3243  Reflects a waiter being removed from the waitqueue by wakeup* paths.
3246  ret等于负EWOULDBLOCK
3247  如果timeout且非taskret等于负ETIMEDOUT
3249  否则如果signal_pending(当前进程)则ret等于负ERESTARTNOINTR
3252  返回:ret
调用者
名称描述
futex_wait_requeue_piex_wait_requeue_pi() - Wait on uaddr and take uaddr2*@uaddr: the futex we initially wait on (non-pi)*@flags: futex flags (FLAGS_SHARED, FLAGS_CLOCKRT, etc