• Home
  • Raw
  • Download

Lines Matching refs:new_timer

491 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()
526 new_timer->it_overrun = -1LL; in do_timer_create()
530 new_timer->it_pid = get_pid(good_sigevent(event)); in do_timer_create()
532 if (!new_timer->it_pid) { in do_timer_create()
536 new_timer->it_sigev_notify = event->sigev_notify; in do_timer_create()
537 new_timer->sigq->info.si_signo = event->sigev_signo; in do_timer_create()
538 new_timer->sigq->info.si_value = event->sigev_value; in do_timer_create()
540 new_timer->it_sigev_notify = SIGEV_SIGNAL; in do_timer_create()
541 new_timer->sigq->info.si_signo = SIGALRM; in do_timer_create()
542 memset(&new_timer->sigq->info.si_value, 0, sizeof(sigval_t)); in do_timer_create()
543 new_timer->sigq->info.si_value.sival_int = new_timer->it_id; in do_timer_create()
544 new_timer->it_pid = get_pid(task_tgid(current)); in do_timer_create()
547 new_timer->sigq->info.si_tid = new_timer->it_id; in do_timer_create()
548 new_timer->sigq->info.si_code = SI_TIMER; in do_timer_create()
556 error = kc->timer_create(new_timer); in do_timer_create()
561 new_timer->it_signal = current->signal; in do_timer_create()
562 list_add(&new_timer->list, &current->signal->posix_timers); in do_timer_create()
573 release_posix_timer(new_timer, it_id_set); in do_timer_create()