projects/linux·blob master · refs

48 lines · 590 B

1// SPDX-License-Identifier: GPL-2.0
2
3#include <asm/barrier.h>
4
5__rust_helper void rust_helper_mb(void)
6{
7 mb();
8}
9
10__rust_helper void rust_helper_rmb(void)
11{
12 rmb();
13}
14
15__rust_helper void rust_helper_wmb(void)
16{
17 wmb();
18}
19
20__rust_helper void rust_helper_dma_mb(void)
21{
22 dma_mb();
23}
24
25__rust_helper void rust_helper_dma_rmb(void)
26{
27 dma_rmb();
28}
29
30__rust_helper void rust_helper_dma_wmb(void)
31{
32 dma_wmb();
33}
34
35__rust_helper void rust_helper_smp_mb(void)
36{
37 smp_mb();
38}
39
40__rust_helper void rust_helper_smp_wmb(void)
41{
42 smp_wmb();
43}
44
45__rust_helper void rust_helper_smp_rmb(void)
46{
47 smp_rmb();
48}