1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_LINUX_MEMBARRIER_H
8 #define _UAPI_LINUX_MEMBARRIER_H
9 enum membarrier_cmd {
10   MEMBARRIER_CMD_QUERY = 0,
11   MEMBARRIER_CMD_GLOBAL = (1 << 0),
12   MEMBARRIER_CMD_GLOBAL_EXPEDITED = (1 << 1),
13   MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = (1 << 2),
14   MEMBARRIER_CMD_PRIVATE_EXPEDITED = (1 << 3),
15   MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = (1 << 4),
16   MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = (1 << 5),
17   MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = (1 << 6),
18   MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = (1 << 7),
19   MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = (1 << 8),
20   MEMBARRIER_CMD_GET_REGISTRATIONS = (1 << 9),
21   MEMBARRIER_CMD_SHARED = MEMBARRIER_CMD_GLOBAL,
22 };
23 enum membarrier_cmd_flag {
24   MEMBARRIER_CMD_FLAG_CPU = (1 << 0),
25 };
26 #endif
27