函数逻辑报告 |
Source Code:kernel\stop_machine.c |
Create Date:2022-07-27 12:24:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:stop_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
函数原型:int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| cpu_stop_fn_t | fn | |
| void * | data | |
| const struct cpumask * | cpus |
| 669 | struct multi_stop_data msdata = {fn = fn, data = data, active_cpus = cpus} |
| 679 | 当非mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically循环 |
| 680 | cpu_relax() |
| 683 | set_state( & msdata, MULTI_STOP_PREPARE) |
| 684 | cpu_stop_init_done( & done, num_active_cpus()) |
| 685 | queue_stop_cpus_work(cpu_active_mask, This is the cpu_stop function which stops the CPU. , & msdata, & done) |
| 691 | cpu_relax() |
| 694 | 返回:如果ret否则collected return value |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |