Lines Matching refs:new_timer

438 static int common_timer_create(struct k_itimer *new_timer)  in common_timer_create()  argument
440 hrtimer_init(&new_timer->it.real.timer, new_timer->it_clock, 0); in common_timer_create()
449 struct k_itimer *new_timer; in do_timer_create() local
457 new_timer = alloc_posix_timer(); in do_timer_create()
458 if (unlikely(!new_timer)) in do_timer_create()
461 spin_lock_init(&new_timer->it_lock); in do_timer_create()
468 new_timer_id = posix_timer_add(new_timer); in do_timer_create()
470 posix_timer_free(new_timer); in do_timer_create()
474 new_timer->it_id = (timer_t) new_timer_id; in do_timer_create()
475 new_timer->it_clock = which_clock; in do_timer_create()
476 new_timer->kclock = kc; in do_timer_create()
477 new_timer->it_overrun = -1LL; in do_timer_create()
481 new_timer->it_pid = get_pid(good_sigevent(event)); in do_timer_create()
483 if (!new_timer->it_pid) { in do_timer_create()
487 new_timer->it_sigev_notify = event->sigev_notify; in do_timer_create()
488 new_timer->sigq->info.si_signo = event->sigev_signo; in do_timer_create()
489 new_timer->sigq->info.si_value = event->sigev_value; in do_timer_create()
491 new_timer->it_sigev_notify = SIGEV_SIGNAL; in do_timer_create()
492 new_timer->sigq->info.si_signo = SIGALRM; in do_timer_create()
493 memset(&new_timer->sigq->info.si_value, 0, sizeof(sigval_t)); in do_timer_create()
494 new_timer->sigq->info.si_value.sival_int = new_timer->it_id; in do_timer_create()
495 new_timer->it_pid = get_pid(task_tgid(current)); in do_timer_create()
498 new_timer->sigq->info.si_tid = new_timer->it_id; in do_timer_create()
499 new_timer->sigq->info.si_code = SI_TIMER; in do_timer_create()
512 error = kc->timer_create(new_timer); in do_timer_create()
518 WRITE_ONCE(new_timer->it_signal, current->signal); in do_timer_create()
519 hlist_add_head(&new_timer->list, &current->signal->posix_timers); in do_timer_create()
527 posix_timer_unhash_and_free(new_timer); in do_timer_create()