Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\update.c Create Date:2022-07-28 10:17:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__wait_rcu_gp

Proto:void __wait_rcu_gp(bool checktiny, int n, call_rcu_func_t *crcu_array, struct rcu_synchronize *rs_array)

Type:void

Parameter:

TypeParameterName
boolchecktiny
intn
call_rcu_func_t *crcu_array
struct rcu_synchronize *rs_array
350  When i < n cycle
353  might_sleep()
354  Continue
356  init_rcu_head_on_stack( & head)
357  init_completion( & completion)
358  When j < i cycle If crcu_array[j] == crcu_array[i] Then
360  Break
361  If j == i Then (crcu_array[i])( & head, wakeme_after_rcu() - Callback function to awaken a task after grace period*@head: Pointer to rcu_head member within rcu_synchronize structure* Awaken the corresponding task now that a grace period has elapsed.)
366  When i < n cycle
367  If checktiny && crcu_array[i] == Post an RCU callback to be invoked after the end of an RCU grace* period. But since we have but one CPU, that would be after any* quiescent state. Then Continue
370  When j < i cycle If crcu_array[j] == crcu_array[i] Then
372  Break
373  If j == i Then wait_for_completion: - waits for completion of a task*@x: holds the state of this particular completion* This waits to be signaled for completion of a specific task. It is NOT* interruptible and there is no timeout.* See also similar routines (i
375  destroy_rcu_head_on_stack( & head)