函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_each_cpu_cond(): Call a function on each processor for which* the supplied function cond_func returns true, optionally waiting* for all the required CPUs to finish

函数原型:void on_each_cpu_cond_mask(bool (*cond_func)(int cpu, void *info), smp_call_func_t func, void *info, bool wait, gfp_t gfp_flags, const struct cpumask *mask)

返回类型:void

参数:

类型参数名称
bool (*cond_func
smp_call_func_tfunc
void *info
boolwait
gfp_tgfp_flags
const struct cpumask *mask
690  might_sleep_if(gfpflags_allow_blocking(gfp_flags))
692  如果此条件成立可能性大(为编译器优化)(zalloc_cpumask_var( & cpus, (gfp_flags | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.)))则
693  禁止抢占()
694  遍历CPU(cpu, mask)
695  如果cond_func(cpu, info)则__cpumask_set_cpu(cpu, cpus)
697  _each_cpu_mask(): Run a function on processors specified by* cpumask, which may include the local processor.*@mask: The set of cpus to run on (only runs on online subset).*@func: The function to run. This must be fast and non-blocking.
698  禁用抢占和中断()
699  释放CPU掩码
700  否则
705  禁止抢占()
706  遍历CPU(cpu, mask)
707  如果cond_func(cpu, info)则
710  WARN_ON_ONCE(ret)
712  禁用抢占和中断()
调用者
名称描述
on_each_cpu_cond