Home
last modified time | relevance | path

Searched refs:nanosleep (Results 1 - 25 of 45) sorted by relevance

12

/kernel/liteos_m/testsuites/unittest/xts/ipc/semaphone/
H A Dsem_test.c140 ret = nanosleep(&req, NULL);
147 ret = nanosleep(&req, NULL);
171 ret = nanosleep(&req, NULL); in ThreadNThreadWait1()
189 ret = nanosleep(&req, NULL); in ThreadNThreadWait2()
194 ret = nanosleep(&req, NULL); in ThreadNThreadWait2()
224 ret = nanosleep(&req, NULL);
232 ret = nanosleep(&req, NULL);
237 ret = nanosleep(&req, NULL);
243 ret = nanosleep(&req, NULL);
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/
H A Dpthread_atfork_test_002.cpp34 extern int nanosleep(const struct timespec *req, struct timespec *rem);
51 (void)nanosleep(&ts, NULL); in Doit()
69 (void)nanosleep(&ts, NULL); in Doit1()
111 nanosleep(&ts, NULL); in PthreadAtforkTest()
/kernel/linux/linux-6.6/kernel/time/
H A Dposix-stubs.c117 current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE; in SYSCALL_DEFINE4()
118 current->restart_block.nanosleep.rmtp = rmtp; in SYSCALL_DEFINE4()
200 current->restart_block.nanosleep.type = rmtp ? TT_COMPAT : TT_NONE; in SYSCALL_DEFINE4()
201 current->restart_block.nanosleep.compat_rmtp = rmtp; in SYSCALL_DEFINE4()
H A Dhrtimer.c2022 switch(restart->nanosleep.type) { in nanosleep_copyout()
2025 if (put_old_timespec32(ts, restart->nanosleep.compat_rmtp)) in nanosleep_copyout()
2030 if (put_timespec64(ts, restart->nanosleep.rmtp)) in nanosleep_copyout()
2061 if (restart->nanosleep.type != TT_NONE) { in do_nanosleep()
2079 hrtimer_init_sleeper_on_stack(&t, restart->nanosleep.clockid, in hrtimer_nanosleep_restart()
2081 hrtimer_set_expires_tv64(&t.timer, restart->nanosleep.expires); in hrtimer_nanosleep_restart()
2112 restart->nanosleep.clockid = t.timer.base->clockid; in hrtimer_nanosleep()
2113 restart->nanosleep.expires = hrtimer_get_expires_tv64(&t.timer); in hrtimer_nanosleep()
2122 SYSCALL_DEFINE2(nanosleep, struct __kernel_timespec __user *, rqtp, in SYSCALL_DEFINE2()
2134 current->restart_block.nanosleep in SYSCALL_DEFINE2()
[all...]
H A Dalarmtimer.c794 if (restart->nanosleep.type != TT_NONE) { in alarmtimer_do_nsleep()
826 enum alarmtimer_type type = restart->nanosleep.clockid; in alarm_timer_nsleep_restart()
827 ktime_t exp = restart->nanosleep.expires; in alarm_timer_nsleep_restart()
836 * alarm_timer_nsleep - alarmtimer nanosleep
881 restart->nanosleep.clockid = type; in alarm_timer_nsleep()
882 restart->nanosleep.expires = exp; in alarm_timer_nsleep()
H A Dposix-cpu-timers.c1582 restart->nanosleep.expires = expires; in do_cpu_nanosleep()
1583 if (restart->nanosleep.type != TT_NONE) in do_cpu_nanosleep()
1613 restart_block->nanosleep.clockid = which_clock; in posix_cpu_nsleep()
1621 clockid_t which_clock = restart_block->nanosleep.clockid; in posix_cpu_nsleep_restart()
1624 t = ns_to_timespec64(restart_block->nanosleep.expires); in posix_cpu_nsleep_restart()
H A Dposix-timers.c1393 current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE; in SYSCALL_DEFINE4()
1394 current->restart_block.nanosleep.rmtp = rmtp; in SYSCALL_DEFINE4()
1421 current->restart_block.nanosleep.type = rmtp ? TT_COMPAT : TT_NONE; in SYSCALL_DEFINE4()
1422 current->restart_block.nanosleep.compat_rmtp = rmtp; in SYSCALL_DEFINE4()
/kernel/linux/linux-5.10/kernel/time/
H A Dposix-stubs.c150 current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE; in SYSCALL_DEFINE4()
151 current->restart_block.nanosleep.rmtp = rmtp; in SYSCALL_DEFINE4()
244 current->restart_block.nanosleep.type = rmtp ? TT_COMPAT : TT_NONE; in SYSCALL_DEFINE4()
245 current->restart_block.nanosleep.compat_rmtp = rmtp; in SYSCALL_DEFINE4()
H A Dalarmtimer.c788 if (restart->nanosleep.type != TT_NONE) { in alarmtimer_do_nsleep()
820 enum alarmtimer_type type = restart->nanosleep.clockid; in alarm_timer_nsleep_restart()
821 ktime_t exp = restart->nanosleep.expires; in alarm_timer_nsleep_restart()
830 * alarm_timer_nsleep - alarmtimer nanosleep
876 restart->nanosleep.clockid = type; in alarm_timer_nsleep()
877 restart->nanosleep.expires = exp; in alarm_timer_nsleep()
H A Dhrtimer.c1943 switch(restart->nanosleep.type) { in nanosleep_copyout()
1946 if (put_old_timespec32(ts, restart->nanosleep.compat_rmtp)) in nanosleep_copyout()
1951 if (put_timespec64(ts, restart->nanosleep.rmtp)) in nanosleep_copyout()
1982 if (restart->nanosleep.type != TT_NONE) { in do_nanosleep()
2000 hrtimer_init_sleeper_on_stack(&t, restart->nanosleep.clockid, in hrtimer_nanosleep_restart()
2002 hrtimer_set_expires_tv64(&t.timer, restart->nanosleep.expires); in hrtimer_nanosleep_restart()
2033 restart->nanosleep.clockid = t.timer.base->clockid; in hrtimer_nanosleep()
2034 restart->nanosleep.expires = hrtimer_get_expires_tv64(&t.timer); in hrtimer_nanosleep()
2043 SYSCALL_DEFINE2(nanosleep, struct __kernel_timespec __user *, rqtp, in SYSCALL_DEFINE2()
2055 current->restart_block.nanosleep in SYSCALL_DEFINE2()
[all...]
H A Dposix-cpu-timers.c1519 restart->nanosleep.expires = expires; in do_cpu_nanosleep()
1520 if (restart->nanosleep.type != TT_NONE) in do_cpu_nanosleep()
1550 restart_block->nanosleep.clockid = which_clock; in posix_cpu_nsleep()
1558 clockid_t which_clock = restart_block->nanosleep.clockid; in posix_cpu_nsleep_restart()
1561 t = ns_to_timespec64(restart_block->nanosleep.expires); in posix_cpu_nsleep_restart()
H A Dposix-timers.c1265 * nanosleep for monotonic and realtime clocks
1310 current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE; in SYSCALL_DEFINE4()
1311 current->restart_block.nanosleep.rmtp = rmtp; in SYSCALL_DEFINE4()
1338 current->restart_block.nanosleep.type = rmtp ? TT_COMPAT : TT_NONE; in SYSCALL_DEFINE4()
1339 current->restart_block.nanosleep.compat_rmtp = rmtp; in SYSCALL_DEFINE4()
/kernel/linux/linux-5.10/tools/testing/selftests/timers/
H A DMakefile7 TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
/kernel/linux/linux-5.10/include/linux/
H A Drestart_block.h37 /* For nanosleep */
46 } nanosleep; member
/kernel/linux/linux-6.6/include/linux/
H A Drestart_block.h38 /* For nanosleep */
47 } nanosleep; member
/kernel/linux/linux-6.6/tools/testing/selftests/timers/
H A DMakefile7 TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dlru_bug.c31 int nanosleep(void *ctx) in nanosleep() function
/kernel/liteos_m/kal/posix/src/
H A Dtime.c94 int nanosleep(const struct timespec *rqtp, struct timespec *rmtp) in nanosleep() function
436 return nanosleep(req, rem); in clock_nanosleep()
814 return nanosleep(&specTime, NULL); in usleep()
824 return nanosleep(&specTime, NULL); in sleep()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dget_stack_raw_tp.c134 nanosleep(&tv, NULL); in test_get_stack_raw_tp()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dget_stack_raw_tp.c136 nanosleep(&tv, NULL); in test_get_stack_raw_tp()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/
H A Dnx_huge_pages_test.c105 nanosleep(&ts, NULL); in wait_for_reclaim()
/kernel/linux/linux-6.6/tools/testing/selftests/net/mptcp/
H A Dmptcp_inq.c229 nanosleep(&req, NULL); in wait_for_ack()
369 nanosleep(&req, NULL); in process_one_client()
/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/
H A Dnf-queue.c267 nanosleep(&ts, NULL); in sleep_ms()
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/
H A Dnf-queue.c267 nanosleep(&ts, NULL); in sleep_ms()
/kernel/liteos_a/compat/posix/src/
H A Dtime.c703 return nanosleep(req, rem); in clock_nanosleep()
1047 int nanosleep(const struct timespec *rqtp, struct timespec *rmtp) in nanosleep() function

Completed in 24 milliseconds

12