/linux/include/linux/ |
A D | restart_block.h | 25 struct restart_block { struct 27 long (*fn)(struct restart_block *); argument 59 extern long do_no_restart_syscall(struct restart_block *parm);
|
A D | thread_info.h | 68 static inline long set_restart_fn(struct restart_block *restart, in set_restart_fn() 69 long (*fn)(struct restart_block *)) in set_restart_fn() argument
|
A D | hrtimer.h | 511 extern int nanosleep_copyout(struct restart_block *, struct timespec64 *);
|
/linux/arch/csky/include/asm/ |
A D | thread_info.h | 20 struct restart_block restart_block; member 31 .restart_block = { \
|
/linux/fs/ |
A D | select.c | 1043 static long do_restart_poll(struct restart_block *restart_block) in do_restart_poll() argument 1046 int nfds = restart_block->poll.nfds; in do_restart_poll() 1050 if (restart_block->poll.has_timeout) { in do_restart_poll() 1051 end_time.tv_sec = restart_block->poll.tv_sec; in do_restart_poll() 1079 struct restart_block *restart_block; in SYSCALL_DEFINE3() local 1081 restart_block = ¤t->restart_block; in SYSCALL_DEFINE3() 1082 restart_block->poll.ufds = ufds; in SYSCALL_DEFINE3() 1083 restart_block->poll.nfds = nfds; in SYSCALL_DEFINE3() 1086 restart_block->poll.tv_sec = end_time.tv_sec; in SYSCALL_DEFINE3() 1088 restart_block->poll.has_timeout = 1; in SYSCALL_DEFINE3() [all …]
|
/linux/kernel/time/ |
A D | posix-stubs.c | 149 current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE; in SYSCALL_DEFINE4() 150 current->restart_block.nanosleep.rmtp = rmtp; in SYSCALL_DEFINE4() 242 current->restart_block.nanosleep.type = rmtp ? TT_COMPAT : TT_NONE; in SYSCALL_DEFINE4() 243 current->restart_block.nanosleep.compat_rmtp = rmtp; in SYSCALL_DEFINE4()
|
A D | posix-cpu-timers.c | 1456 struct restart_block *restart; in do_cpu_nanosleep() 1523 restart = ¤t->restart_block; in do_cpu_nanosleep() 1532 static long posix_cpu_nsleep_restart(struct restart_block *restart_block); 1537 struct restart_block *restart_block = ¤t->restart_block; in posix_cpu_nsleep() local 1555 restart_block->nanosleep.clockid = which_clock; in posix_cpu_nsleep() 1556 set_restart_fn(restart_block, posix_cpu_nsleep_restart); in posix_cpu_nsleep() 1561 static long posix_cpu_nsleep_restart(struct restart_block *restart_block) in posix_cpu_nsleep_restart() argument 1563 clockid_t which_clock = restart_block->nanosleep.clockid; in posix_cpu_nsleep_restart() 1566 t = ns_to_timespec64(restart_block->nanosleep.expires); in posix_cpu_nsleep_restart()
|
A D | hrtimer.c | 2016 int nanosleep_copyout(struct restart_block *restart, struct timespec64 *ts) in nanosleep_copyout() 2037 struct restart_block *restart; in do_nanosleep() 2056 restart = ¤t->restart_block; in do_nanosleep() 2070 static long __sched hrtimer_nanosleep_restart(struct restart_block *restart) in hrtimer_nanosleep_restart() 2086 struct restart_block *restart; in hrtimer_nanosleep() 2107 restart = ¤t->restart_block; in hrtimer_nanosleep() 2129 current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE; in SYSCALL_DEFINE2() 2130 current->restart_block.nanosleep.rmtp = rmtp; in SYSCALL_DEFINE2() 2150 current->restart_block.nanosleep.type = rmtp ? TT_COMPAT : TT_NONE; in SYSCALL_DEFINE2() 2151 current->restart_block.nanosleep.compat_rmtp = rmtp; in SYSCALL_DEFINE2()
|
A D | alarmtimer.c | 749 struct restart_block *restart; in alarmtimer_do_nsleep() 769 restart = ¤t->restart_block; in alarmtimer_do_nsleep() 800 static long __sched alarm_timer_nsleep_restart(struct restart_block *restart) in alarm_timer_nsleep_restart() 823 struct restart_block *restart = ¤t->restart_block; in alarm_timer_nsleep()
|
A D | posix-timers.c | 1264 current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE; in SYSCALL_DEFINE4() 1265 current->restart_block.nanosleep.rmtp = rmtp; in SYSCALL_DEFINE4() 1291 current->restart_block.nanosleep.type = rmtp ? TT_COMPAT : TT_NONE; in SYSCALL_DEFINE4() 1292 current->restart_block.nanosleep.compat_rmtp = rmtp; in SYSCALL_DEFINE4()
|
/linux/arch/s390/kernel/ |
A D | syscall.c | 124 if (nr == __NR_restart_syscall && !(current->restart_block.arch_data & 1)) { in do_syscall() 125 regs->psw.addr = current->restart_block.arch_data; in do_syscall() 126 current->restart_block.arch_data = 1; in do_syscall()
|
A D | signal.c | 145 current->restart_block.fn = do_no_restart_syscall; in restore_sigregs() 512 current->restart_block.arch_data = regs->psw.addr; in arch_do_signal_or_restart()
|
A D | process.c | 174 p->restart_block.arch_data = 1; in copy_thread()
|
/linux/kernel/futex/ |
A D | waitwake.c | 320 static long futex_wait_restart(struct restart_block *restart); 635 struct restart_block *restart; in futex_wait() 677 restart = ¤t->restart_block; in futex_wait() 694 static long futex_wait_restart(struct restart_block *restart) in futex_wait_restart()
|
/linux/arch/sh/kernel/ |
A D | signal_32.c | 160 current->restart_block.fn = do_no_restart_syscall; in sys_sigreturn() 190 current->restart_block.fn = do_no_restart_syscall; in sys_rt_sigreturn()
|
/linux/init/ |
A D | init_task.c | 88 .restart_block = {
|
/linux/arch/csky/kernel/ |
A D | signal.c | 76 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE0()
|
/linux/arch/arm/kernel/ |
A D | signal.c | 191 current->restart_block.fn = do_no_restart_syscall; in sys_sigreturn() 221 current->restart_block.fn = do_no_restart_syscall; in sys_rt_sigreturn()
|
/linux/arch/openrisc/kernel/ |
A D | signal.c | 43 current->restart_block.fn = do_no_restart_syscall; in restore_sigcontext()
|
/linux/arch/arm64/kernel/ |
A D | signal32.c | 234 current->restart_block.fn = do_no_restart_syscall; in COMPAT_SYSCALL_DEFINE0() 265 current->restart_block.fn = do_no_restart_syscall; in COMPAT_SYSCALL_DEFINE0()
|
/linux/arch/h8300/kernel/ |
A D | signal.c | 82 current->restart_block.fn = do_no_restart_syscall; in restore_sigcontext()
|
/linux/arch/riscv/kernel/ |
A D | signal.c | 106 current->restart_block.fn = do_no_restart_syscall; in SYSCALL_DEFINE0()
|
/linux/arch/hexagon/kernel/ |
A D | signal.c | 231 current->restart_block.fn = do_no_restart_syscall; in sys_rt_sigreturn()
|
/linux/arch/mips/kernel/ |
A D | signal_o32.c | 93 current->restart_block.fn = do_no_restart_syscall; in restore_sigcontext32()
|
/linux/arch/microblaze/kernel/ |
A D | signal.c | 90 current->restart_block.fn = do_no_restart_syscall; in sys_rt_sigreturn()
|