This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Documentation of eventfd_write and eventfd_read?
- From: Hei Chan <structurechart at yahoo dot com>
- To: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Fri, 31 Jan 2014 08:55:11 -0800 (PST)
- Subject: Documentation of eventfd_write and eventfd_read?
- Authentication-results: sourceware.org; auth=none
- References:
- Reply-to: Hei Chan <structurechart at yahoo dot com>
Hi,
I am looking for the documentation of eventfd_write() and eventfd_read().
I downloaded the manual of glibc and grepped for eventfd_write/read but I don't see any.
If the manual doesn't exist, I have 2 questions:
1. eventfd_write()'s 2nd argument can't be zero? It seems like when it is zero, epoll_wait() never returns for that event.
2. will there be any side effect if I call eventfd_write(), epoll_wait() returns for that event, but I don't eventfd_read() to consume that event?
Thanks in advance.