函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cpu_stop_init_done

函数原型:static void cpu_stop_init_done(struct cpu_stop_done *done, unsigned int nr_todo)

返回类型:void

参数:

类型参数名称
struct cpu_stop_done *done
unsigned intnr_todo
56  memset(done, 0, done的长度)
57  atomic_set( & r left to execute , nr_todo)
58  init_completion( & d if nr_todo reaches 0 )
调用者
名称描述
stop_one_cpustop_one_cpu - stop a cpu*@cpu: cpu to stop*@fn: function to execute*@arg: argument to @fn* Execute @fn(@arg) on @cpu. @fn is run in a process context with* the highest priority preempting any task on the cpu and* monopolizing it
stop_two_cpusstop_two_cpus - stops two cpus*@cpu1: the cpu to stop*@cpu2: the other cpu to stop*@fn: function to execute*@arg: argument to @fn* Stops both the current and specified CPU and runs @fn on one of them.* returns when both are completed.
__stop_cpus
stop_machine_from_inactive_cpustop_machine_from_inactive_cpu - stop_machine() from inactive CPU*@fn: the function to run*@data: the data ptr for the @fn()*@cpus: the cpus to run the @fn() on (NULL = any online cpu)* This is identical to stop_machine() but can be called from a CPU which