summaryrefslogtreecommitdiffstats
path: root/src/poll.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-27 04:44:01 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-27 04:44:01 +0200
commita0e0e9898a7c1abeb4dbf6ba188a9bcaf523e003 (patch)
tree0c2051ecd915712ef5ca4f47feb89b47394c33a9 /src/poll.c
parent556284a10e482027f741f9afe6cbaa1b4e2207f8 (diff)
downloadfastd-a0e0e9898a7c1abeb4dbf6ba188a9bcaf523e003.tar
fastd-a0e0e9898a7c1abeb4dbf6ba188a9bcaf523e003.zip
More documentation
Diffstat (limited to 'src/poll.c')
-rw-r--r--src/poll.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/poll.c b/src/poll.c
index ce1a7f4..0a2e11a 100644
--- a/src/poll.c
+++ b/src/poll.c
@@ -23,6 +23,12 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/**
+ \file poll.h
+
+ Portable polling API implementations
+*/
+
#include "poll.h"
#include "async.h"
@@ -90,6 +96,7 @@ static inline int handshake_timeout(void) {
#include <sys/epoll.h>
+/** Initializes the poll interface */
void fastd_poll_init(void) {
ctx.epoll_fd = epoll_create1(0);
if (ctx.epoll_fd < 0)
@@ -103,6 +110,7 @@ void fastd_poll_init(void) {
exit_errno("epoll_ctl");
}
+/** Frees the poll interface */
void fastd_poll_free(void) {
if (close(ctx.epoll_fd))
pr_warn_errno("closing EPOLL: close");