diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-09-22 21:48:17 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-09-22 21:48:17 +0400 |
commit | d36fc2b235ddaaa3fbb84a46ef520a0a207293df (patch) | |
tree | 075126d1a4a0e133dde1ff55e6403334799c0202 /accel-pppd/triton/triton_p.h | |
parent | 731682bcb429470d366903adf7056151a94816b7 (diff) | |
download | accel-ppp-d36fc2b235ddaaa3fbb84a46ef520a0a207293df.tar.gz accel-ppp-d36fc2b235ddaaa3fbb84a46ef520a0a207293df.zip |
triton: make level triggered events oneshot (EPOLLONESHOT)
Diffstat (limited to 'accel-pppd/triton/triton_p.h')
-rw-r--r-- | accel-pppd/triton/triton_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; |