Lines Matching defs:eventfd
164 int eventfd;
242 eventfd = open(eventdev, O_RDWR | O_NONBLOCK);
243 if(eventfd < 0) {
309 FD_SET(eventfd, &rfds);
311 res = select(((notifyfd > eventfd) ? notifyfd : eventfd) + 1, &rfds, NULL, NULL, &tv);
345 if(FD_ISSET(eventfd, &rfds)) {
347 res = read(eventfd, &event, sizeof(event));
367 write(eventfd, &light_event, sizeof(light_event));
369 write(eventfd, &light_event2, sizeof(light_event2));
408 write(eventfd, &light_event, sizeof(light_event));
414 write(eventfd, &light_event2, sizeof(light_event2));
421 write(eventfd, &light_event, sizeof(light_event));
423 write(eventfd, &light_event2, sizeof(light_event2));