|
ginnOS
The reference: libc, the libraries and the kernel
|
Functions | |
| void | poll_init (void) |
| set up the poll queue. | |
| void | poll_notify (void) |
| wake every process in poll: some file's readiness may have changed. | |
| uint32_t | poll_snapshot (void) |
| read the notify counter. | |
| void | poll_wait (uint64_t deadline, uint32_t seen) |
| sleep until poll_notify, a signal or the deadline tick, unless a notify came after poll_snapshot returned seen. | |
| void poll_init | ( | void | ) |
set up the poll queue.
call once at boot, before the first poll.
| void poll_notify | ( | void | ) |
wake every process in poll: some file's readiness may have changed.
safe to call from an interrupt handler.
| uint32_t poll_snapshot | ( | void | ) |
read the notify counter.
call it before the readiness check, and give the value to poll_wait: a notify between the check and the sleep then stops the sleep.