Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The hash bucket lock must be held when this is called.* Afterwards, the futex_q must not be accessed. Callers* must ensure to later call wake_up_q() for the actual* wakeups to occur.

Proto:static void mark_wake_futex(struct wake_q_head *wake_q, struct futex_q *q)

Type:void

Parameter:

TypeParameterName
struct wake_q_head *wake_q
struct futex_q *q
1526  p = task
1528  If WARN(pi_state || rt_waiter, "refusing to wake PI futex\n") Then Return
1531  get_task_struct(p)
1532  __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.
1540  smp_store_release( & lock_ptr, NULL)
1546  wake_q_add_safe() - safely queue a wakeup for 'later' waking
Caller
NameDescribe
futex_wakeWake up waiters matching bitset queued on this futex (uaddr).
futex_wake_opWake up all waiters hashed on the physical page that is mapped* to this virtual address:
futex_requeueex_requeue() - Requeue waiters from uaddr1 to uaddr2*@uaddr1: source futex user address*@flags: futex flags (FLAGS_SHARED, etc