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>
Sat, 5 Sep 2020 22:07:35 +0000 (16:07 -0600)
commit25815d8a181ace20afa8f5bc94f2d4236105c8a6
tree224df06cffdc445101b5bf8fde4fa760030f1ddc
parent24c7d7e50bed5d2fdc72296a9ed268b55cdb4cee
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