Home
last modified time | relevance | path

Searched refs:new_timer (Results 1 – 3 of 3) sorted by relevance

/kernel/time/
Dposix-timers.c491 static int common_timer_create(struct k_itimer *new_timer) in common_timer_create() argument
493 hrtimer_init(&new_timer->it.real.timer, new_timer->it_clock, 0); in common_timer_create()
502 struct k_itimer *new_timer; in do_timer_create() local
511 new_timer = alloc_posix_timer(); in do_timer_create()
512 if (unlikely(!new_timer)) in do_timer_create()
515 spin_lock_init(&new_timer->it_lock); in do_timer_create()
516 new_timer_id = posix_timer_add(new_timer); in do_timer_create()
523 new_timer->it_id = (timer_t) new_timer_id; in do_timer_create()
524 new_timer->it_clock = which_clock; in do_timer_create()
525 new_timer->kclock = kc; in do_timer_create()
[all …]
Dposix-cpu-timers.c387 static int posix_cpu_timer_create(struct k_itimer *new_timer) in posix_cpu_timer_create() argument
393 pid = pid_for_clock(new_timer->it_clock, false); in posix_cpu_timer_create()
408 lockdep_set_class(&new_timer->it_lock, &posix_cpu_timers_key); in posix_cpu_timer_create()
410 new_timer->kclock = &clock_posix_cpu; in posix_cpu_timer_create()
411 timerqueue_init(&new_timer->it.cpu.node); in posix_cpu_timer_create()
412 new_timer->it.cpu.pid = get_pid(pid); in posix_cpu_timer_create()
Dalarmtimer.c728 static int alarm_timer_create(struct k_itimer *new_timer) in alarm_timer_create() argument
738 type = clock2alarm(new_timer->it_clock); in alarm_timer_create()
739 alarm_init(&new_timer->it.alarm.alarmtimer, type, alarm_handle_timer); in alarm_timer_create()