Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:leanup_srcu_struct - deconstruct a sleep-RCU structure*@ssp: structure to clean up.* Must invoke this after you are finished using a given srcu_struct that* was initialized via init_srcu_struct(), else you leak memory.

Proto:void cleanup_srcu_struct(struct srcu_struct *ssp)

Type:void

Parameter:

TypeParameterName
struct srcu_struct *ssp
374  If WARN_ON(!Return grace-period delay, zero if there are expedited grace* periods pending, SRCU_INTERVAL otherwise.) Then Return
376  If WARN_ON(srcu_readers_active - returns true if there are readers. and false* otherwise*@ssp: which srcu_struct to count active readers (holding srcu_read_lock).* Note that this is not an atomic primitive, and can therefore suffer) Then Return
378  lush_delayed_work - wait for a dwork to finish executing the last queueing*@dwork: the delayed work to flush* Delayed timer is cancelled and the pending work is queued for* immediate execution. Like flush_work(), this function only
379  for_each_possible_cpu(cpu)
380  sdp = per_cpu_ptr(sda, cpu)
382  del_timer_sync( & delay_work)
383  lush_work - wait for a work to finish executing the last queueing instance*@work: the work to flush* Wait until @work has finished execution
384  If WARN_ON(Return number of callbacks in segmented callback list. ) Then Return
387  If WARN_ON(Return the state portion of a sequence number previously returned* by rcu_seq_snap() or rcu_seq_current(). != SRCU_STATE_IDLE) || WARN_ON(srcu_readers_active - returns true if there are readers. and false* otherwise*@ssp: which srcu_struct to count active readers (holding srcu_read_lock).* Note that this is not an atomic primitive, and can therefore suffer) Then
389  pr_info("%s: Active srcu_struct %p state: %d\n", __func__, ssp, Return the state portion of a sequence number previously returned* by rcu_seq_snap() or rcu_seq_current().)
391  Return
393  free previously allocated percpu memory
394  sda = NULL
Caller
NameDescribe
srcu_module_goingClean up any global-scope srcu_struct structures used by this module.