membarrier.h 654 B

123456789101112131415161718192021
  1. #ifndef _SYS_MEMBARRIER_H
  2. #define _SYS_MEMBARRIER_H
  3. #define MEMBARRIER_CMD_QUERY 0
  4. #define MEMBARRIER_CMD_GLOBAL 1
  5. #define MEMBARRIER_CMD_GLOBAL_EXPEDITED 2
  6. #define MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED 4
  7. #define MEMBARRIER_CMD_PRIVATE_EXPEDITED 8
  8. #define MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED 16
  9. #define MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE 32
  10. #define MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE 64
  11. #define MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ 128
  12. #define MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ 256
  13. #define MEMBARRIER_CMD_SHARED MEMBARRIER_CMD_GLOBAL
  14. #define MEMBARRIER_CMD_FLAG_CPU 1
  15. int membarrier(int, int);
  16. #endif