函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\srcutree.c Create Date:2022-07-27 11:18:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:void cleanup_srcu_struct(struct srcu_struct *ssp)

返回类型:void

参数:

类型参数名称
struct srcu_struct *ssp
374  如果WARN_ON(!Return grace-period delay, zero if there are expedited grace* periods pending, SRCU_INTERVAL otherwise.)则返回
376  如果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)则返回
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  遍历可用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  如果WARN_ON(Return number of callbacks in segmented callback list. )则返回
387  如果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)则
389  打印信息("%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  返回
393  释放内存
394  sda = NULL
调用者
名称描述
srcu_module_goingClean up any global-scope srcu_struct structures used by this module.
blk_mq_hw_sysfs_release