函数逻辑报告 |
Source Code:kernel\sched\membarrier.c |
Create Date:2022-07-27 10:45:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:membarrier_global_expedited
函数原型:static int membarrier_global_expedited(void)
返回类型:int
参数:无
71 | 如果num_online_cpus()恒等于1则返回:0 |
78 | smp_mb() |
80 | 如果非zalloc_cpumask_var( & tmpmask, GFP_KERNEL)则返回:负ENOMEM |
83 | cpus_read_lock() |
96 | 如果cpu恒等于These macros fold the SMP functionality into a single CPU system()则继续下一循环 |
99 | 如果非READ_ONCE(membarrier_state)按位与MEMBARRIER_STATE_GLOBAL_EXPEDITED的值则继续下一循环 |
108 | p等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(curr) |
109 | 如果任务标志按位与I am a kernel thread 则继续下一循环 |
112 | __cpumask_set_cpu(cpu, tmpmask) |
116 | 禁止抢占() |
117 | smp_call_function_many(tmpmask, ipi_mb, NULL, 1) |
118 | 禁用抢占和中断() |
120 | 释放CPU掩码 |
121 | cpus_read_unlock() |
128 | smp_mb() |
129 | 返回:0 |
名称 | 描述 |
---|---|
SYSCALL_DEFINE2 | sys_membarrier - issue memory barriers on a set of threads*@cmd: Takes command values defined in enum membarrier_cmd |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |