aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorCurlyMoo <curlymoo1@gmail.com>2016-09-09 00:42:43 +0200
committerSaúl Ibarra Corretgé <saghul@gmail.com>2017-07-12 23:04:34 +0200
commitd731fd1bd9400eab4ee9bf11bda9f64951fc4d89 (patch)
tree9a65dc91ef189c36c27d72827fb74811b99b0fb2 /docs/src
parent78c17238f48d9083359206a2215fc63dd7a0283d (diff)
downloadlibuv-d731fd1bd9400eab4ee9bf11bda9f64951fc4d89.tar.gz
libuv-d731fd1bd9400eab4ee9bf11bda9f64951fc4d89.zip
poll: add support for OOB TCP and GPIO interrupts
Out-of-band TCP messages are used for TCP data transmission outside (outband) the inbound TCP data. These packets are sent with an "urgent pointer", but previously discarded. Additionally, when using (e)poll a POLLPRI is triggered when an interrupt signal is received on GPIO capable systems such as the Raspberry Pi. PR-URL: https://github.com/libuv/libuv/pull/1040 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/poll.rst15
1 files changed, 10 insertions, 5 deletions
diff --git a/docs/src/poll.rst b/docs/src/poll.rst
index 004ff4b9..aba89158 100644
--- a/docs/src/poll.rst
+++ b/docs/src/poll.rst
@@ -54,7 +54,8 @@ Data types
enum uv_poll_event {
UV_READABLE = 1,
UV_WRITABLE = 2,
- UV_DISCONNECT = 4
+ UV_DISCONNECT = 4,
+ UV_PRIORITIZED = 8
};
@@ -84,10 +85,13 @@ API
.. c:function:: int uv_poll_start(uv_poll_t* handle, int events, uv_poll_cb cb)
- Starts polling the file descriptor. `events` is a bitmask consisting made up
- of UV_READABLE, UV_WRITABLE and UV_DISCONNECT. As soon as an event is detected
- the callback will be called with `status` set to 0, and the detected events set on the
- `events` field.
+ Starts polling the file descriptor. `events` is a bitmask made up of
+ UV_READABLE, UV_WRITABLE, UV_PRIORITIZED and UV_DISCONNECT. As soon as an
+ event is detected the callback will be called with `status` set to 0, and the
+ detected events set on the `events` field.
+
+ The UV_PRIORITIZED event is used to watch for sysfs interrupts or TCP out-of-band
+ messages.
The UV_DISCONNECT event is optional in the sense that it may not be
reported and the user is free to ignore it, but it can help optimize the shutdown
@@ -108,6 +112,7 @@ API
on the `events` field in the callback.
.. versionchanged:: 1.9.0 Added the UV_DISCONNECT event.
+ .. versionchanged:: 1.14.0 Added the UV_PRIORITIZED event.
.. c:function:: int uv_poll_stop(uv_poll_t* poll)