Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-28 09:27:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:schedule_on_each_cpu - execute a function synchronously on each online CPU*@func: the function to call* schedule_on_each_cpu() executes @func on each online CPU using the* system workqueue and blocks until all CPUs have completed.

Proto:int schedule_on_each_cpu(work_func_t func)

Type:int

Parameter:

TypeParameterName
work_func_tfunc
3278  __percpu * works
3280  works = alloc_percpu(structwork_struct)
3281  If Not works Then Return -ENOMEM
3284  get_online_cpus()
3286  for_each_online_cpu(cpu)
3287  work = per_cpu_ptr(works, cpu)
3289  INIT_WORK(work, func)
3290  schedule_work_on - put work task on a specific cpu*@cpu: cpu to put the work task on*@work: job to be done* This puts a job on a specific cpu
3293  for_each_online_cpu(cpu)
3294  lush_work - wait for a work to finish executing the last queueing instance*@work: the work to flush* Wait until @work has finished execution
3296  put_online_cpus()
3297  free previously allocated percpu memory
3298  Return 0
Caller
NameDescribe
klp_synchronize_transitionWe allow to patch also functions where RCU is not watching,* e
update_ftrace_function