]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring/bpf-ops: implement loop_step with BPF struct_ops
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 26 Feb 2026 12:48:39 +0000 (12:48 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Mar 2026 22:15:00 +0000 (16:15 -0600)
commitd0e437b76bd3c979ddaa6205f5e9ad3e0f95faef
tree8a4f1c0e7b277a6969c45f5356d0e8eadae1d8a1
parent033af2b3eb19c5ed96825572105bca3611635ada
io_uring/bpf-ops: implement loop_step with BPF struct_ops

Introduce io_uring BPF struct ops implementing the loop_step callback,
which will allow BPF to overwrite the default io_uring event loop logic.

The callback takes an io_uring context, the main role of which is to be
passed to io_uring kfuncs. The other argument is a struct iou_loop_params,
which BPF can use to request CQ waiting and communicate other parameters.
See the event loop description in the previous patch for more details.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://patch.msgid.link/98db437651ce64e9cbeb611c60bf5887259db09f.1772109579.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/Kconfig
io_uring/Makefile
io_uring/bpf-ops.c [new file with mode: 0644]
io_uring/bpf-ops.h [new file with mode: 0644]
io_uring/io_uring.c