From d36fc2b235ddaaa3fbb84a46ef520a0a207293df Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Mon, 22 Sep 2014 21:48:17 +0400 Subject: triton: make level triggered events oneshot (EPOLLONESHOT) --- accel-pppd/triton/triton_p.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'accel-pppd/triton/triton_p.h') diff --git a/accel-pppd/triton/triton_p.h b/accel-pppd/triton/triton_p.h index 94017293..2bbccbd1 100644 --- a/accel-pppd/triton/triton_p.h +++ b/accel-pppd/triton/triton_p.h @@ -54,8 +54,10 @@ struct _triton_md_handler_t struct _triton_context_t *ctx; struct epoll_event epoll_event; uint32_t trig_epoll_events; - int pending:1; + int pending; int trig_level:1; + int armed:1; + int mod:1; struct triton_md_handler_t *ud; }; @@ -98,6 +100,7 @@ int event_init(); void md_run(); void md_terminate(); +void md_rearm(struct _triton_md_handler_t *h); void timer_run(); void timer_terminate(); extern struct triton_context_t default_ctx; -- cgit v1.2.3