Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int smpboot_register_percpu_thread(struct smp_hotplug_thread *plug_thread)

Type:int

Parameter:

TypeParameterName
struct smp_hotplug_thread *plug_thread
292  ret = 0
294  get_online_cpus()
295  mutex_lock( & smpboot_threads_lock)
296  for_each_online_cpu(cpu)
297  ret = __smpboot_create_thread(plug_thread, cpu)
298  If ret Then
300  Go to out
302  smpboot_unpark_thread(plug_thread, cpu)
304  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
305  out :
306  mutex_unlock( & smpboot_threads_lock)
307  put_online_cpus()
308  Return ret
Caller
NameDescribe
rcu_spawn_core_kthreadsSpawn per-CPU RCU core processing kthreads.
cpu_stop_init