Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\futex.c Create Date:2022-07-28 10:54:21
Last Modify:2020-03-17 15:28:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:PI futexes can not be requeued and must remove themself from the* hash bucket. The hash bucket lock (i.e. lock_ptr) is held on entry* and dropped here.

Proto:static void unqueue_me_pi(struct futex_q *q)__releases(q->lock_ptr)

Type:void

Parameter:

TypeParameterName
struct futex_q *q
2431  __unqueue_futex() - Remove the futex_q from its futex_hash_bucket*@q: The futex_q to unqueue* The q->lock_ptr must not be NULL and must be held by the caller.
2433  BUG_ON(!pi_state)
2434  Drops a reference to the pi_state object and frees or caches it* when the last reference is gone.
2435  pi_state = NULL
2437  spin_unlock(lock_ptr)
Caller
NameDescribe
futex_lock_piUserspace tried a 0 -> TID atomic transition of the futex value* and failed. The kernel side here does the whole locking operation:* if there are waiters then it will block as a consequence of relying* on rt-mutexes, it does PI, etc
futex_wait_requeue_piex_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