Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Enqueue an SRCU callback on the specified srcu_struct structure,* initiating grace-period processing if it is not already running.

Proto:void call_srcu(struct srcu_struct *ssp, struct callback_head *rhp, rcu_callback_t func)

Type:void

Parameter:

TypeParameterName
struct srcu_struct *ssp
struct callback_head *rhp
rcu_callback_tfunc
163  func = func
164  next = NULL
165  local_irq_save(flags)
166  Pending callbacks: Tail. = rhp
167  Pending callbacks: Tail. = next
168  local_irq_restore(flags)
169  If Not READ_ONCE( GP workqueue running? ) Then
170  If Value is more likely to compile time(srcu_init_done) Then schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise
172  Else if list_empty - tests whether a list is empty*@head: the list to test. Then list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
Caller
NameDescribe
synchronize_srcusynchronize_srcu - wait for prior SRCU read-side critical-section completion
srcu_torture_deferred_free
srcu_torture_call
srcu_call_rcu
rcu_free_old_probes