On 11/4/22 3:40 AM, Stefan Roesch wrote:
This adds the two functions to register and unregister the napi busy
poll timeout:
- io_uring_register_busy_poll_timeout
- io_uring_unregister_busy_poll_timeout
Signed-off-by: Stefan Roesch <shr@xxxxxxxxxxxx>
---
src/include/liburing.h | 3 +++
src/include/liburing/io_uring.h | 4 ++++
src/register.c | 12 ++++++++++++
3 files changed, 19 insertions(+)
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 12a703f..ef2510e 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -235,6 +235,9 @@ int io_uring_register_sync_cancel(struct io_uring *ring,
int io_uring_register_file_alloc_range(struct io_uring *ring,
unsigned off, unsigned len);
+int io_uring_register_busy_poll_timeout(struct io_uring *ring, unsigned int to);
+int io_uring_unregister_busy_poll_timeout(struct io_uring *ring);
+
If you export a non inline function, you should also update the liburing.map
file.
--
Ammar Faizi