Lines Matching defs:evp
784 int timer_create(clockid_t clockID, struct sigevent *restrict evp, timer_t *restrict timerID)
792 if (!timerID || (clockID != CLOCK_REALTIME) || !evp) {
797 if ((evp->sigev_notify != SIGEV_THREAD) || evp->sigev_notify_attributes) {
802 ret = LOS_SwtmrCreate(1, LOS_SWTMR_MODE_ONCE, (SWTMR_PROC_FUNC)evp->sigev_notify_function,
803 &swtmrID, (UINTPTR)evp->sigev_value.sival_ptr);
821 int OsTimerCreate(clockid_t clockID, struct ksigevent *evp, timer_t *timerID)
836 signo = evp ? evp->sigev_signo : SIGALRM;
841 if (evp && (evp->sigev_notify != SIGEV_SIGNAL && evp->sigev_notify != SIGEV_THREAD_ID)) {
852 arg->tid = evp ? evp->sigev_tid : 0;
855 arg->sigev_value.sival_ptr = evp ? evp->sigev_value.sival_ptr : NULL;