diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-09-19 05:41:00 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-01 05:32:33 +0300 |
commit | a3ec60054082ca2c2145ba487f9fc4de904e2b03 (patch) | |
tree | 0e08bc6921f35bc8cce5da04cad3343b685f1d95 /include/linux/io_uring.h | |
parent | 9b8284921513fc1ea57d87777283a59b05862f03 (diff) | |
download | linux-a3ec60054082ca2c2145ba487f9fc4de904e2b03.tar.xz |
io_uring: move io_uring_get_socket() into io_uring.h
Now we have a io_uring kernel header, move this definition out of fs.h
and into io_uring.h where it belongs.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/io_uring.h')
-rw-r--r-- | include/linux/io_uring.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h index c09135a1ef13..96315cfaf6d1 100644 --- a/include/linux/io_uring.h +++ b/include/linux/io_uring.h @@ -19,6 +19,7 @@ struct io_uring_task { }; #if defined(CONFIG_IO_URING) +struct sock *io_uring_get_socket(struct file *file); void __io_uring_task_cancel(void); void __io_uring_files_cancel(struct files_struct *files); void __io_uring_free(struct task_struct *tsk); @@ -39,6 +40,10 @@ static inline void io_uring_free(struct task_struct *tsk) __io_uring_free(tsk); } #else +static inline struct sock *io_uring_get_socket(struct file *file) +{ + return NULL; +} static inline void io_uring_task_cancel(void) { } |