Lines Matching refs:fds
311 int __user *fds; member
324 p->fds = u64_to_user_ptr(READ_ONCE(sqe->addr)); in io_pipe_prep()
339 int ret, fds[2] = { -1, -1 }; in io_pipe_fixed() local
350 fds[0] = ret; in io_pipe_fixed()
363 fds[1] = ret; in io_pipe_fixed()
368 if (!copy_to_user(p->fds, fds, sizeof(fds))) in io_pipe_fixed()
374 if (fds[0] != -1) in io_pipe_fixed()
375 io_fixed_fd_remove(ctx, fds[0]); in io_pipe_fixed()
376 if (fds[1] != -1) in io_pipe_fixed()
377 io_fixed_fd_remove(ctx, fds[1]); in io_pipe_fixed()
385 int ret, fds[2] = { -1, -1 }; in io_pipe_fd() local
390 fds[0] = ret; in io_pipe_fd()
395 fds[1] = ret; in io_pipe_fd()
397 if (!copy_to_user(p->fds, fds, sizeof(fds))) { in io_pipe_fd()
398 fd_install(fds[0], files[0]); in io_pipe_fd()
399 fd_install(fds[1], files[1]); in io_pipe_fd()
404 if (fds[0] != -1) in io_pipe_fd()
405 put_unused_fd(fds[0]); in io_pipe_fd()
406 if (fds[1] != -1) in io_pipe_fd()
407 put_unused_fd(fds[1]); in io_pipe_fd()