Lines Matching refs:fd
1729 req->file = io_file_get_fixed(req, req->cqe.fd, issue_flags);
1731 req->file = io_file_get_normal(req, req->cqe.fd);
1897 inline struct file *io_file_get_fixed(struct io_kiocb *req, int fd,
1906 if (unlikely((unsigned int)fd >= ctx->nr_user_files))
1908 fd = array_index_nospec(fd, ctx->nr_user_files);
1909 slot = io_fixed_file_slot(&ctx->file_table, fd);
1919 struct file *io_file_get_normal(struct io_kiocb *req, int fd)
1921 struct file *file = fget(fd);
1923 trace_io_uring_file_get(req, fd);
2106 req->cqe.fd = READ_ONCE(sqe->fd);
3181 SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,
3195 * Ring fd has been registered via IORING_REGISTER_RING_FDS, we
3201 if (unlikely(!tctx || fd >= IO_RINGFD_REG_MAX))
3203 fd = array_index_nospec(fd, IO_RINGFD_REG_MAX);
3204 file = tctx->registered_rings[fd];
3208 file = fget(fd);
3387 int fd;
3389 fd = get_unused_fd_flags(O_RDWR | O_CLOEXEC);
3390 if (fd < 0)
3391 return fd;
3392 fd_install(fd, file);
3393 return fd;
3397 * Allocate an anonymous fd, this is what constitutes the application
3399 * fd to gain access to the SQ/CQ ring details.
3595 * Install ring fd as the very last thing, so we don't risk someone
3616 * Sets up an aio uring context, and returns the fd. Applications asks for a
3688 BUILD_BUG_SQE_ELEM(4, __s32, fd);