函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rcu_pending

函数原型:static int rcu_pending(int user)

返回类型:int

参数:

类型参数名称
intuser
2824  rdp等于this_cpu_ptr( & rcu_data)
2825  rnp等于This CPU's leaf of hierarchy
2828  check_cpu_stall(rdp)
2831  如果rcu_nocb_need_deferred_wakeup(rdp)则返回:1
2835  如果user_is_cpu_rrupt_from_idle - see if interrupted from idle* If the current CPU is idle and running at a first-level (not nested)* interrupt from idle, return true. The caller must have at least* disabled preemption.的值且rcu_nohz_full_cpu()则返回:0
2839  gp_in_progress等于Return true if an RCU grace period is in progress. The READ_ONCE()s* permit this function to be invoked without holding the root rcu_node* structure's ->lock, but of course results can be subject to change.
2840  如果Core waits for quiesc state. 且非normgp_in_progress则返回:1
2844  如果Does the specified rcu_segcblist structure contain callbacks that* are ready to be invoked?则返回:1
2848  如果非gp_in_progressIs the specified rcu_segcblist enabled, for example, not corresponding* to an offline CPU?且非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_RCU_NOCB_CPU)或非Is the specified rcu_segcblist offloaded? 的值且非Are all segments following the specified segment of the specified* rcu_segcblist structure empty of callbacks? (The specified* segment might well contain callbacks.)则返回:1
2855  如果Return the current value the update side's sequence number, no ordering. 不等于Track rsp->rcu_gp_seq counter. 此条件成立可能性小(为编译器优化)(READ_ONCE(Possible ->gp_seq wrap. ))则返回:1
2860  返回:0
调用者
名称描述
rcu_sched_clock_irqThis function is invoked from each scheduling-clock interrupt,* and checks to see if this CPU is in a non-context-switch quiescent* state, for example, user mode or idle loop. It also schedules RCU* core processing