diff options
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); |
