summaryrefslogtreecommitdiff
path: root/io_uring/filetable.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-26 18:44:31 +0300
committerJens Axboe <axboe@kernel.dk>2022-07-25 03:39:12 +0300
commitc98817e6cd4471a6f6283813dd6efea162f5ac5f (patch)
tree53e03d1a9e466e8a68c4cad65346d02351a6604c /io_uring/filetable.h
parent73572984481907d92673255b494c0ff4f77c8ed4 (diff)
downloadlinux-c98817e6cd4471a6f6283813dd6efea162f5ac5f.tar.xz
io_uring: move remaining file table manipulation to filetable.c
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/filetable.h')
-rw-r--r--io_uring/filetable.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/io_uring/filetable.h b/io_uring/filetable.h
index 6e1675f406b7..c404360f7090 100644
--- a/io_uring/filetable.h
+++ b/io_uring/filetable.h
@@ -3,6 +3,7 @@
#define IOU_FILE_TABLE_H
struct io_ring_ctx;
+struct io_kiocb;
/*
* FFS_SCM is only available on 64-bit archs, for 32-bit we just define it as 0
@@ -34,7 +35,9 @@ struct io_file_table {
bool io_alloc_file_tables(struct io_file_table *table, unsigned nr_files);
void io_free_file_tables(struct io_file_table *table);
-int io_file_bitmap_get(struct io_ring_ctx *ctx);
+
+int io_fixed_fd_install(struct io_kiocb *req, unsigned int issue_flags,
+ struct file *file, unsigned int file_slot);
unsigned int io_file_get_flags(struct file *file);