1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
/*
* SYSCALL_DEFINE(fadvise64_64)(int fd, loff_t offset, loff_t len, int advice)
*
* On success, zero is returned.
* On error, an error number is returned.
*/
#include "sanitise.h"
struct syscall syscall_fadvise64_64 = {
.name = "fadvise64",
.num_args = 4,
.arg1name = "fd",
.arg1type = ARG_FD,
.arg2name = "offset",
.arg3name = "len",
.arg3type = ARG_LEN,
.arg4name = "advice",
.rettype = RET_ZERO_SUCCESS,
.group = GROUP_VFS,
};
/*
* asmlinkage long sys_arm_fadvise64_64(int fd, int advice, loff_t offset, loff_t len)
* ARM has same as fadvise64 but with other argument order.
*/
struct syscall syscall_arm_fadvise64_64 = {
.name = "arm_fadvise64_64",
.num_args = 4,
.arg1name = "fd",
.arg1type = ARG_FD,
.arg2name = "advice",
.arg3name = "offset",
.arg4name = "len",
.arg4type = ARG_LEN,
.rettype = RET_ZERO_SUCCESS,
.group = GROUP_VFS,
};
|