1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Common syscall restarting data
5 #ifndef __LINUX_RESTART_BLOCK_H
6 #define __LINUX_RESTART_BLOCK_H
8 #include <linux/compiler.h>
9 #include <linux/types.h>
10 #include <linux/time64.h>
13 struct old_timespec32;
23 * System call restart block.
25 struct restart_block {
26 long (*fn)(struct restart_block *);
28 /* For futex_wait and futex_wait_requeue_pi */
40 enum timespec_type type;
42 struct __kernel_timespec __user *rmtp;
43 struct old_timespec32 __user *compat_rmtp;
49 struct pollfd __user *ufds;
53 unsigned long tv_nsec;
58 extern long do_no_restart_syscall(struct restart_block *parm);
60 #endif /* __LINUX_RESTART_BLOCK_H */