| Function report | 
| Source Code: kernel\futex.c | Create Date:2022-07-28 10:53:44 | 
| Last Modify:2020-03-17 15:28:32 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Lookup the task for the TID provided from user space and attach to* it after doing proper sanity checks.
Proto: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)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | If Not p Then Return handle_exit_race(uaddr, uval, NULL) | 
| 1292 | put_task_struct(p) | 
| 1293 | Return -EPERM | 
| 1333 | pi_state = alloc_pi_state() | 
| 1353 | put_task_struct(p) | 
| 1357 | Return 0 | 
| Name | Describe | 
|---|---|
| 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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |