Added check for the membarrier
system call. Also added documentation about the new requirement.
This commit is contained in:
parent
80b4261fd3
commit
0c4a4ddcca
9 changed files with 126 additions and 14 deletions
14
membarrier_check.c
Normal file
14
membarrier_check.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <linux/membarrier.h>
|
||||
#include <sys/membarrier.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int rc = membarrier(MEMBARRIER_CMD_QUERY, 0);
|
||||
if (rc < 0) {
|
||||
perror("membarrier");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue