[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <478e464b-0dbf-82fb-ce86-8a796019584b@gnuweeb.org>
Date: Fri, 4 Nov 2022 04:55:24 +0700
From: Ammar Faizi <ammarfaizi2@...weeb.org>
To: Stefan Roesch <shr@...kernel.io>,
Facebook Kernel Team <kernel-team@...com>
Cc: Jens Axboe <axboe@...nel.dk>,
Olivier Langlois <olivier@...llion01.com>,
Jakub Kicinski <kuba@...nel.org>,
netdev Mailing List <netdev@...r.kernel.org>,
io-uring Mailing List <io-uring@...r.kernel.org>
Subject: Re: [RFC PATCH v1 1/3] liburing: add api to set napi busy poll
timeout
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@...kernel.io>
> ---
> 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
Powered by blists - more mailing lists