From a0e0e9898a7c1abeb4dbf6ba188a9bcaf523e003 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 27 May 2014 04:44:01 +0200 Subject: More documentation --- src/poll.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/poll.c') 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 +/** 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"); -- cgit v1.2.3