Lines Matching refs:event
420 static struct pid *good_sigevent(sigevent_t * event) in good_sigevent() argument
424 if ((event->sigev_notify & SIGEV_THREAD_ID ) && in good_sigevent()
425 (!(rtn = find_task_by_vpid(event->sigev_notify_thread_id)) || in good_sigevent()
427 (event->sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_SIGNAL)) in good_sigevent()
430 if (((event->sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_NONE) && in good_sigevent()
431 ((event->sigev_signo <= 0) || (event->sigev_signo > SIGRTMAX))) in good_sigevent()
486 sigevent_t event; in SYSCALL_DEFINE3() local
534 if (copy_from_user(&event, timer_event_spec, sizeof (event))) { in SYSCALL_DEFINE3()
539 new_timer->it_pid = get_pid(good_sigevent(&event)); in SYSCALL_DEFINE3()
546 event.sigev_notify = SIGEV_SIGNAL; in SYSCALL_DEFINE3()
547 event.sigev_signo = SIGALRM; in SYSCALL_DEFINE3()
548 event.sigev_value.sival_int = new_timer->it_id; in SYSCALL_DEFINE3()
552 new_timer->it_sigev_notify = event.sigev_notify; in SYSCALL_DEFINE3()
553 new_timer->sigq->info.si_signo = event.sigev_signo; in SYSCALL_DEFINE3()
554 new_timer->sigq->info.si_value = event.sigev_value; in SYSCALL_DEFINE3()