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:queue_me() - Remove the futex_q from its futex_hash_bucket*@q: The futex_q to unqueue* The q->lock_ptr must not be held by the caller

Proto:static int unqueue_me(struct futex_q *q)

Type:int

Parameter:

TypeParameterName
struct futex_q *q
2382  ret = 0
2385  retry :
2391  lock_ptr = READ_ONCE(lock_ptr)
2392  If (lock_ptr != NULL) Then
2393  spin_lock(lock_ptr)
2409  Go to retry
2411  __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.
2413  BUG_ON(pi_state)
2415  spin_unlock(lock_ptr)
2416  ret = 1
2419  Drop a reference to the resource addressed by a key.* The hash bucket spinlock must not be held. This is* a no-op for private futexes, see comment in the get* counterpart.
2420  Return ret
Caller
NameDescribe
futex_wait