Function report |
Source Code:kernel\sched\membarrier.c |
Create Date:2022-07-28 09:45:26 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:membarrier_global_expedited
Proto:static int membarrier_global_expedited(void)
Type:int
Parameter:Nothing
| 71 | If num_online_cpus() == 1 Then Return 0 |
| 78 | smp_mb() |
| 80 | If Not zalloc_cpumask_var( & tmpmask, GFP_KERNEL) Then Return -ENOMEM |
| 83 | cpus_read_lock() |
| 96 | If cpu == These macros fold the SMP functionality into a single CPU system() Then Continue |
| 99 | If Not (READ_ONCE(membarrier_state) & MEMBARRIER_STATE_GLOBAL_EXPEDITED) Then Continue |
| 109 | If Per task flags (PF_*), defined further below: & I am a kernel thread Then Continue |
| 112 | __cpumask_set_cpu(cpu, tmpmask) |
| 117 | smp_call_function_many(tmpmask, ipi_mb, NULL, 1) |
| 118 | preempt_enable() |
| 120 | free_cpumask_var(tmpmask) |
| 121 | cpus_read_unlock() |
| 128 | smp_mb() |
| 129 | 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 |