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:Call a function on all processors. May be used during early boot while* early_boot_irqs_disabled is set. Use local_irq_save/restore() instead* of local_irq_disable/enable().

Proto:void on_each_cpu(void (*func)(void *info), void *info, int wait)

Type:void

Parameter:

TypeParameterName
void (*func
void *info
intwait
615  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
616  smp_call_function(func, info, wait)
617  local_irq_save(flags)
618  func(info)
619  local_irq_restore(flags)
620  preempt_enable()