Lines Matching refs:fd
1746 req->file = io_file_get_fixed(req, req->cqe.fd, issue_flags);
1748 req->file = io_file_get_normal(req, req->cqe.fd);
1945 inline struct file *io_file_get_fixed(struct io_kiocb *req, int fd,
1953 node = io_rsrc_node_lookup(&ctx->file_table.data, fd);
1964 struct file *io_file_get_normal(struct io_kiocb *req, int fd)
1966 struct file *file = fget(fd);
1968 trace_io_uring_file_get(req, fd);
2169 req->cqe.fd = READ_ONCE(sqe->fd);
3398 SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,
3415 * Ring fd has been registered via IORING_REGISTER_RING_FDS, we
3421 if (unlikely(!tctx || fd >= IO_RINGFD_REG_MAX))
3423 fd = array_index_nospec(fd, IO_RINGFD_REG_MAX);
3424 file = tctx->registered_rings[fd];
3428 file = fget(fd);
3605 int fd;
3607 fd = get_unused_fd_flags(O_RDWR | O_CLOEXEC);
3608 if (fd < 0)
3609 return fd;
3610 fd_install(fd, file);
3611 return fd;
3615 * Allocate an anonymous fd, this is what constitutes the application
3617 * fd to gain access to the SQ/CQ ring details.
3630 /* There is no way to mmap rings without a real fd */
3842 * Install ring fd as the very last thing, so we don't risk someone
3863 * Sets up an aio uring context, and returns the fd. Applications asks for a
3949 BUILD_BUG_SQE_ELEM(4, __s32, fd);