mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
0b6d253e08
Can be done in one of two ways: 1) Regular file descriptor, just fget() 2) Registered ring, index our own table for that In preparation for adding another register use of needing to get a ctx from a file descriptor, abstract out this helper and use it in the main register syscall as well. Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 lines
284 B
C
10 lines
284 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(int fd, bool registered);
|
|
|
|
#endif
|