mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
one useless futex example, hopefully correct
This commit is contained in:
13
lkmc/futex.h
Normal file
13
lkmc/futex.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef LKMC_FUTEX_H
|
||||
#define LKMC_FUTEX_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
|
||||
Reference in New Issue
Block a user