函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lock_pi_update_atomic

函数原型:static int lock_pi_update_atomic(unsigned int __user *uaddr, unsigned int uval, unsigned int newval)

返回类型:int

参数:

类型参数名称
unsigned int __user *uaddr
unsigned intuval
unsigned intnewval
1384  curval等于curval
1386  如果此条件成立可能性小(为编译器优化)(should_fail_futex(true))则返回:负EFAULT
1389  err等于cmpxchg_futex_value_locked( & curval, uaddr, uval, newval)
1390  如果此条件成立可能性小(为编译器优化)(err)则返回:err
1394  返回:如果curval不等于uval则负EAGAIN否则0
调用者
名称描述
futex_lock_pi_atomicex_lock_pi_atomic() - Atomic work required to acquire a pi aware futex*@uaddr: the pi futex user address*@hb: the pi futex hash bucket*@key: the futex key associated with uaddr and hb*@ps: the pi_state pointer where we store the result of the* lookup