OSDN Git Service

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)
commit9d4a75efa200a31deabe9ba1c941aef697e6bb30
tree40679e816648b1448c48e69c91f9f91dbd77f44c
parenta3ec60054082ca2c2145ba487f9fc4de904e2b03
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