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>
12 struct compat_timespec;
24 * System call restart block.
26 struct restart_block {
27 long (*fn)(struct restart_block *);
29 /* For futex_wait and futex_wait_requeue_pi */
41 enum timespec_type type;
43 struct timespec __user *rmtp;
45 struct compat_timespec __user *compat_rmtp;
52 struct pollfd __user *ufds;
56 unsigned long tv_nsec;
61 extern long do_no_restart_syscall(struct restart_block *parm);
63 #endif /* __LINUX_RESTART_BLOCK_H */