Lines Matching refs:events
44 * All events have a name, an expiration time and a function to be called
56 static TAILQ_HEAD (event_head, event) events;
62 TAILQ_INIT(&events);
73 struct event *e = TAILQ_FIRST(&events);
89 * routine gets called. Handle and remove all pending events.
98 for (e = TAILQ_FIRST(&events); e && timespeccmp(&now, &e->expire, >=);
99 e = TAILQ_FIRST(&events)) {
100 TAILQ_REMOVE(&events, e, next);
136 for (e = TAILQ_FIRST(&events); e; e = TAILQ_NEXT(e, next)) {
142 TAILQ_INSERT_TAIL(&events, new, next);