diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 02:35:32 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 02:35:32 +0100 |
| commit | 95fd9a4ae2717a73bc446b29a87ad5bc9f00317e (patch) | |
| tree | 36b0a0accb4da8269faf0c8e80455b83d04a6456 /ot_event.h | |
| parent | e3efacd05d8a74b2f753dd8afbfe62baa1e0770e (diff) | |
Reduce number of per connection sys calls
Diffstat (limited to 'ot_event.h')
| -rw-r--r-- | ot_event.h | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -29,6 +29,11 @@ int event_add(int fd, int what, uint32_t generation); | |||
| 29 | int event_modify(int fd, int what, uint32_t generation); | 29 | int event_modify(int fd, int what, uint32_t generation); |
| 30 | int event_del(int fd); | 30 | int 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. */ | ||
| 35 | int 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. */ |
| 34 | int event_wait(ot_event *out, int max, int timeout_ms); | 39 | int event_wait(ot_event *out, int max, int timeout_ms); |
