函数逻辑报告 |
Source Code:kernel\futex.c |
Create Date:2022-07-27 11:54:11 |
Last Modify:2020-03-17 15:28:32 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ex_proxy_trylock_atomic() - Attempt an atomic lock for the top waiter*@pifutex: the user address of the to futex*@hb1: the from futex hash bucket, must be locked by the caller*@hb2: the to futex hash bucket, must be locked by the caller*@key1: the from
函数原型:static int futex_proxy_trylock_atomic(unsigned int __user *pifutex, struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2, union futex_key *key1, union futex_key *key2, struct futex_pi_state **ps, struct task_struct **exiting, int set_waiters)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int __user * | pifutex | |
struct futex_hash_bucket * | hb1 | |
struct futex_hash_bucket * | hb2 | |
union futex_key * | key1 | |
union futex_key * | key2 | |
struct futex_pi_state ** | ps | |
struct task_struct ** | exiting | |
int | set_waiters |
1938 | struct futex_q * top_waiter = NULL |
1942 | 如果get_futex_value_locked( & curval, pifutex)则返回:负EFAULT |
1945 | 如果此条件成立可能性小(为编译器优化)(should_fail_futex(true))则返回:负EFAULT |
1959 | 如果非top_waiter则返回:0 |
1963 | 如果非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.则返回:负EINVAL |
1971 | vpid等于task_pid_vnr(task) |
1974 | 如果ret恒等于1则 |
1976 | 返回:vpid |
1978 | 返回:ret |
名称 | 描述 |
---|---|
futex_requeue | ex_requeue() - Requeue waiters from uaddr1 to uaddr2*@uaddr1: source futex user address*@flags: futex flags (FLAGS_SHARED, etc |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |