mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
2f6a55e423
Originally "fd" was unsigned int but it was changed to int when we pulled
this code into a separate function in commit 0b6d253e08
("io_uring/register: provide helper to get io_ring_ctx from 'fd'"). This
doesn't really cause a runtime problem because the call to
array_index_nospec() will clamp negative fds to 0 and nothing else uses
the negative values.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/6f6cb630-079f-4fdf-bf95-1082e0a3fc6e@stanley.mountain
Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 lines
293 B
C
10 lines
293 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef IORING_REGISTER_H
|
|
#define IORING_REGISTER_H
|
|
|
|
int io_eventfd_unregister(struct io_ring_ctx *ctx);
|
|
int io_unregister_personality(struct io_ring_ctx *ctx, unsigned id);
|
|
struct file *io_uring_register_get_file(unsigned int fd, bool registered);
|
|
|
|
#endif
|