| Function report | 
| Source Code: kernel\sched\membarrier.c | Create Date:2022-07-28 09:45:29 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:membarrier_private_expedited
Proto:static int membarrier_private_expedited(int flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | flags | 
| 138 | If flags & MEMBARRIER_FLAG_SYNC_CORE Then | 
| 139 | If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE) Then Return -EINVAL | 
| 141 | If Not (atomic_read( & membarrier_state) & MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE_READY) Then Return -EPERM | 
| 144 | Else | 
| 145 | If Not (atomic_read( & membarrier_state) & MEMBARRIER_STATE_PRIVATE_EXPEDITED_READY) Then Return -EPERM | 
| 157 | smp_mb() | 
| 159 | If Not zalloc_cpumask_var( & tmpmask, GFP_KERNEL) Then Return -ENOMEM | 
| 162 | cpus_read_lock() | 
| 164 | for_each_online_cpu(cpu) | 
| 175 | If cpu == These macros fold the SMP functionality into a single CPU system() Then Continue | 
| 184 | smp_call_function_many(tmpmask, ipi_mb, NULL, 1) | 
| 185 | preempt_enable() | 
| 187 | free_cpumask_var(tmpmask) | 
| 188 | cpus_read_unlock() | 
| 195 | smp_mb() | 
| 197 | Return 0 | 
| Name | Describe | 
|---|---|
| SYSCALL_DEFINE2 | sys_membarrier - issue memory barriers on a set of threads*@cmd: Takes command values defined in enum membarrier_cmd | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |