summaryrefslogtreecommitdiffstats
path: root/src/poll.c
diff options
context:
space:
mode:
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");