mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
21 lines
406 B
C
21 lines
406 B
C
#ifndef LKMC_FUTEX_H
|
|
#define LKMC_FUTEX_H
|
|
|
|
#ifndef _GNU_SOURCE
|
|
#define _GNU_SOURCE
|
|
#endif
|
|
#include <linux/futex.h>
|
|
#include <sys/syscall.h>
|
|
#include <unistd.h>
|
|
|
|
static int
|
|
lkmc_futex(int *uaddr, int futex_op, int val,
|
|
const struct timespec *timeout, int *uaddr2, int val3)
|
|
{
|
|
(void)uaddr2;
|
|
return syscall(SYS_futex, uaddr, futex_op, val,
|
|
timeout, uaddr, val3);
|
|
}
|
|
|
|
#endif
|