Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\smp.c Create Date:2022-07-28 10:56:02
Last Modify:2020-03-17 15:12:54 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_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.

Proto:void on_each_cpu_mask(const struct cpumask *mask, smp_call_func_t func, void *info, bool wait)

Type:void

Parameter:

TypeParameterName
const struct cpumask *mask
smp_call_func_tfunc
void *info
boolwait
643  cpu = get_cpu()
645  smp_call_function_many(): Run a function on a set of other CPUs
646  If pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then
648  local_irq_save(flags)
649  func(info)
650  local_irq_restore(flags)
652  put_cpu()
Caller
NameDescribe
on_each_cpu_cond_mask_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