函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smpboot_register_percpu_thread - Register a per_cpu thread related* to hotplug*@plug_thread: Hotplug thread descriptor* Creates and starts the threads on all online cpus.

函数原型:int smpboot_register_percpu_thread(struct smp_hotplug_thread *plug_thread)

返回类型:int

参数:

类型参数名称
struct smp_hotplug_thread *plug_thread
292  ret等于0
294  get_online_cpus()
295  mutex_lock( & smpboot_threads_lock)
296  遍历在线CPU(cpu)
297  ret等于__smpboot_create_thread(plug_thread, cpu)
298  如果ret
300  转到:out
302  smpboot_unpark_thread(plug_thread, cpu)
304  添加链表项
305  out :
306  mutex_unlock( & smpboot_threads_lock)
307  put_online_cpus()
308  返回:ret
调用者
名称描述
rcu_spawn_core_kthreadsSpawn per-CPU RCU core processing kthreads.
cpu_stop_init
spawn_ksoftirqd