函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Funnel-lock acquisition for expedited grace periods

函数原型:static bool exp_funnel_lock(unsigned long s)

返回类型:bool

参数:

类型参数名称
unsigned longs
277  rdp等于per_cpu_ptr( & rcu_data, These macros fold the SMP functionality into a single CPU system())
278  rnp等于This CPU's leaf of hierarchy
279  rnp_root等于Return the root node of the rcu_state structure.
282  如果ULONG_CMP_LT(READ_ONCE(exp_seq_rq), s)且rnp恒等于rnp_rootULONG_CMP_LT(READ_ONCE(exp_seq_rq), s)的值且mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically则转到:fastpath
295 rnp != NULL循环
296  如果Common code for work-done checking. 则返回:true
300  加自旋锁
301  如果ULONG_CMP_GE(exp_seq_rq, s)则
310  返回:true
312  exp_seq_rq等于s
313  自旋锁解锁
314  trace_rcu_exp_funnel_lock(Name of structure. , is at level 0. , lowest-numbered CPU or group here. , highest-numbered CPU or group here. , Strings used in tracepoints need to be exported via the* tracing system such that tools like perf and trace-cmd can* translate the string address pointers to actual text.("nxtlvl"))
317  mutex_lock( & Serialize expedited GP. )
318  fastpath :
319  如果Common code for work-done checking.
320  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
321  返回:true
323  Record the start of an expedited grace period.
324  trace_rcu_exp_grace_period(Name of structure. , s, Strings used in tracepoints need to be exported via the* tracing system such that tools like perf and trace-cmd can* translate the string address pointers to actual text.("start"))
325  返回:false
调用者
名称描述
synchronize_rcu_expeditedsynchronize_rcu_expedited - Brute-force RCU grace period* Wait for an RCU grace period, but expedite it