函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:int schedule_on_each_cpu(work_func_t func)

返回类型:int

参数:

类型参数名称
work_func_tfunc
3278  __percpuworks
3280  works等于alloc_percpu(structwork_struct)
3281  如果非works则返回:负ENOMEM
3284  get_online_cpus()
3286  遍历在线CPU(cpu)
3287  work等于per_cpu_ptr(works, cpu)
3289  INIT_WORK(work, func)
3290  为cpu配置任务
3293  遍历在线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  释放内存
3298  返回:0
调用者
名称描述
klp_synchronize_transitionWe allow to patch also functions where RCU is not watching,* e
update_ftrace_function