Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ex_wait_queue_me() - queue_me() and wait for wakeup, timeout, or signal*@hb: the futex hash bucket, must be locked by the caller*@q: the futex_q to queue up on*@timeout: the prepared hrtimer_sleeper, or null for no timeout

Proto:static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q, struct hrtimer_sleeper *timeout)

Type:void

Parameter:

TypeParameterName
struct futex_hash_bucket *hb
struct futex_q *q
struct hrtimer_sleeper *timeout
2687  set_current_state(TASK_INTERRUPTIBLE)
2688  queue_me() - Enqueue the futex_q on the futex_hash_bucket*@q: The futex_q to enqueue*@hb: The destination hash bucket* The hb->lock must be held by the caller, and is released here. A call to
2691  If timeout Then hrtimer_sleeper_start_expires - Start a hrtimer sleeper timer*@sl: sleeper to be started*@mode: timer mode abs/rel* Wrapper around hrtimer_start_expires() for hrtimer_sleeper based timers* to allow PREEMPT_RT to tweak the delivery mode (soft/hardirq
2698  If Value is more likely to compile time(!plist_node_empty - return !0 if plist_node is not on a list*@node: &struct plist_node pointer) Then
2704  If Not timeout || task Then freezable_schedule()
2707  set_current_state() includes a barrier so that the write of current->state* is correctly serialised wrt the caller's subsequent test of whether to* actually sleep:* for (;;) {* set_current_state(TASK_UNINTERRUPTIBLE);* if (!need_sleep)* break;* (Used in tsk->state: )
Caller
NameDescribe
futex_wait
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