函数逻辑报告 |
Source Code:kernel\futex.c |
Create Date:2022-07-27 11:53:46 |
Last Modify:2020-03-17 15:28:32 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Lookup the task for the TID provided from user space and attach to* it after doing proper sanity checks.
函数原型:static int attach_to_pi_owner(unsigned int __user *uaddr, unsigned int uval, union futex_key *key, struct futex_pi_state **ps, struct task_struct **exiting)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int __user * | uaddr | |
unsigned int | uval | |
union futex_key * | key | |
struct futex_pi_state ** | ps | |
struct task_struct ** | exiting |
1287 | p等于find_get_task_by_vpid(pid) |
1288 | 如果非p则返回:handle_exit_race(uaddr, uval, NULL) |
1291 | 如果此条件成立可能性小(为编译器优化)(任务标志 & I am a kernel thread )则 |
1292 | put_task_struct(p) |
1293 | 返回:负EPERM |
1301 | 关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & Protection of the PI data structures: ) |
1302 | 如果此条件成立可能性小(为编译器优化)(futex_state != FUTEX_STATE_OK)则 |
1333 | pi_state等于alloc_pi_state() |
1345 | 添加链表项 |
1353 | put_task_struct(p) |
1357 | 返回:0 |
名称 | 描述 |
---|---|
lookup_pi_state | |
futex_lock_pi_atomic | ex_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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |