| Function report | 
| Source Code: kernel\futex.c | Create Date:2022-07-28 10:54:52 | 
| Last Modify:2020-03-17 15:28:32 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:ex_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
Proto:static int futex_wait_requeue_pi(unsigned int __user *uaddr, unsigned int flags, unsigned int val, ktime_t *abs_time, unsigned int bitset, unsigned int __user *uaddr2)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned int __user * | uaddr | |
| unsigned int | flags | |
| unsigned int | val | |
| ktime_t * | abs_time | |
| unsigned int | bitset | |
| unsigned int __user * | uaddr2 | 
| 3300 | struct futex_pi_state * pi_state = NULL | 
| 3303 | key2 = FUTEX_KEY_INIT | 
| 3304 | q = futex_q_init | 
| 3307 | If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_FUTEX_PI) Then Return -ENOSYS | 
| 3323 | rt_mutex_init_waiter( & rt_waiter) | 
| 3326 | If Value for the false possibility is greater at compile time(ret != 0) Then Go to out | 
| 3331 | requeue_pi_key = key2 | 
| 3356 | spin_unlock( & lock) | 
| 3357 | If ret Then Go to out_put_keys | 
| 3370 | If Not rt_waiter Then | 
| 3375 | If pi_state && owner != current process Then | 
| 3377 | ret = fixup_pi_state_owner(uaddr2, & q, current process) | 
| 3378 | If ret && rt_mutex_owner( & The PI object:) == current process Then | 
| 3380 | get_pi_state(pi_state) | 
| 3386 | Drops a reference to the pi_state object and frees or caches it* when the last reference is gone. | 
| 3387 | spin_unlock(lock_ptr) | 
| 3389 | Else | 
| 3398 | pi_mutex = The PI object: | 
| 3399 | ret = _mutex_wait_proxy_lock() - Wait for lock acquisition*@lock: the rt_mutex we were woken on*@to: the timeout, null if none | 
| 3405 | debug_rt_mutex_free_waiter( & rt_waiter) | 
| 3423 | If ret && rt_mutex_owner( & The PI object:) == current process Then | 
| 3425 | get_pi_state(pi_state) | 
| 3432 | If pi_state Then | 
| 3433 | rt_mutex_futex_unlock( & The PI object:) | 
| 3445 | ret = -EWOULDBLOCK | 
| 3448 | out_put_keys : | 
| 3449 | put_futex_key( & key) | 
| 3450 | out_key2 : | 
| 3451 | put_futex_key( & key2) | 
| 3453 | out : | 
| 3454 | If to Then | 
| 3456 | destroy_hrtimer_on_stack( & timer) | 
| 3458 | Return ret | 
| Name | Describe | 
|---|---|
| do_futex | 
| 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 |