Function report |
Source Code:kernel\futex.c |
Create Date:2022-07-28 10:54:08 |
Last Modify:2020-03-17 15:28:32 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto: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)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If get_futex_value_locked( & curval, pifutex) Then Return -EFAULT |
1945 | If Value for the false possibility is greater at compile time(should_fail_futex(true)) Then Return -EFAULT |
1959 | If Not top_waiter Then Return 0 |
1963 | If Not 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. Then Return -EINVAL |
1971 | vpid = task_pid_vnr(task) |
1974 | If ret == 1 Then |
1976 | Return vpid |
1978 | Return ret |
Name | Describe |
---|---|
futex_requeue | ex_requeue() - Requeue waiters from uaddr1 to uaddr2*@uaddr1: source futex user address*@flags: futex flags (FLAGS_SHARED, etc |
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 |