Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\smp.c Create Date:2022-07-28 10:55:46
Last Modify:2020-03-17 15:12:54 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Insert a previously allocated call_single_data_t element* for execution on the given CPU. data must already have* ->func, ->info, and ->flags set.

Proto:static int generic_exec_single(int cpu, call_single_data_t *csd, smp_call_func_t func, void *info)

Type:int

Parameter:

TypeParameterName
intcpu
call_single_data_t *csd
smp_call_func_tfunc
void *info
145  If cpu == smp_processor_id() Then
152  csd_unlock(csd)
153  local_irq_save(flags)
154  func(info)
155  local_irq_restore(flags)
156  Return 0
160  If cpu >= nr_cpu_ids || Not cpu_online(cpu) Then
161  csd_unlock(csd)
162  Return -ENXIO
165  func = func
166  info = info
179  If llist_add - add a new entry*@new: new entry to be added*@head: the head for your lock-less list* Returns true if the list was empty prior to adding this entry. Then arch_send_call_function_single_ipi(cpu)
182  Return 0
Caller
NameDescribe
smp_call_function_singlesmp_call_function_single - Run a function on a specific CPU*@func: The function to run. This must be fast and non-blocking.*@info: An arbitrary pointer to pass to the function.*@wait: If true, wait until function has completed on other CPUs.
smp_call_function_single_asyncsmp_call_function_single_async(): Run an asynchronous function on a* specific CPU.*@cpu: The CPU to run on.*@csd: Pre-allocated and setup data structure* Like smp_call_function_single(), but the call is asynchonous and