]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use an enumeration for io_uring_register(2) opcodes
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 27 Aug 2020 14:58:29 +0000 (16:58 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Oct 2020 02:32:33 +0000 (20:32 -0600)
commit421baaaccc967c670f56967837ae5b0ef7500717
tree40679e816648b1448c48e69c91f9f91dbd77f44c
parent1d14e916e89dbbd84bd3c8891edf6a6ec518c49c
io_uring: use an enumeration for io_uring_register(2) opcodes

The enumeration allows us to keep track of the last
io_uring_register(2) opcode available.

Behaviour and opcodes names don't change.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h