Lines Matching full:sn
69 timer_dispatch(struct sigev_node *sn) in timer_dispatch() argument
71 timer_func f = sn->sn_func; in timer_dispatch()
74 if (sn->sn_info.si_value.sival_int == sn->sn_gen) in timer_dispatch()
75 f(sn->sn_value, sn->sn_info.si_overrun); in timer_dispatch()
83 struct sigev_node *sn; in __timer_create() local
109 sn = __sigev_alloc(SI_TIMER, evp, NULL, 0); in __timer_create()
110 if (sn == NULL) { in __timer_create()
116 __sigev_get_sigevent(sn, &ev, sn->sn_gen); in __timer_create()
120 __sigev_free(sn); in __timer_create()
125 sn->sn_flags |= SNF_SYNC; in __timer_create()
126 sn->sn_dispatch = timer_dispatch; in __timer_create()
127 sn->sn_id = timer->oshandle; in __timer_create()
128 timer->node = sn; in __timer_create()
130 __sigev_register(sn); in __timer_create()