summaryrefslogtreecommitdiff
path: root/ot_event.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-30 02:35:32 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-30 02:35:32 +0100
commit95fd9a4ae2717a73bc446b29a87ad5bc9f00317e (patch)
tree36b0a0accb4da8269faf0c8e80455b83d04a6456 /ot_event.h
parente3efacd05d8a74b2f753dd8afbfe62baa1e0770e (diff)
Reduce number of per connection sys calls
Diffstat (limited to 'ot_event.h')
-rw-r--r--ot_event.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ot_event.h b/ot_event.h
index 6023134..aa007d0 100644
--- a/ot_event.h
+++ b/ot_event.h
@@ -29,6 +29,11 @@ int event_add(int fd, int what, uint32_t generation);
29int event_modify(int fd, int what, uint32_t generation); 29int event_modify(int fd, int what, uint32_t generation);
30int event_del(int fd); 30int event_del(int fd);
31 31
32/* Stop watching a descriptor and close it. Where the kernel drops a closed
33 descriptor from its set by itself, this is one system call where doing the
34 two separately would be two. */
35int event_close(int fd);
36
32/* Waits at most timeout_ms, or indefinitely when that is negative, and fills 37/* Waits at most timeout_ms, or indefinitely when that is negative, and fills
33 out with up to max ready descriptors. Returns how many, or -1. */ 38 out with up to max ready descriptors. Returns how many, or -1. */
34int event_wait(ot_event *out, int max, int timeout_ms); 39int event_wait(ot_event *out, int max, int timeout_ms);