io_uring: add register/unregister napi function io_uring-napi
authorStefan Roesch <shr@devkernel.io>
Thu, 8 Jun 2023 16:38:38 +0000 (09:38 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Feb 2024 20:28:27 +0000 (13:28 -0700)
commitc2b742674da5b7da17a0c6ec87e0e0ed9cea5a33
tree84134d753bb2bada59b465bff128856bf8bf80b0
parentecfe1ce99295b799193661193b0469650b650b0f
io_uring: add register/unregister napi function

This adds an api to register and unregister the napi for io-uring. If
the arg value is specified when unregistering, the current napi setting
for the busy poll timeout is copied into the user structure. If this is
not required, NULL can be passed as the arg value.

Signed-off-by: Stefan Roesch <shr@devkernel.io>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230608163839.2891748-7-shr@devkernel.io
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/napi.c
io_uring/napi.h
io_uring/register.c