Lines Matching defs:fds
283 /* ensure the task's creds are used when installing/receiving fds */
311 int __user *fds;
324 p->fds = u64_to_user_ptr(READ_ONCE(sqe->addr));
339 int ret, fds[2] = { -1, -1 };
350 fds[0] = ret;
363 fds[1] = ret;
368 if (!copy_to_user(p->fds, fds, sizeof(fds)))
374 if (fds[0] != -1)
375 io_fixed_fd_remove(ctx, fds[0]);
376 if (fds[1] != -1)
377 io_fixed_fd_remove(ctx, fds[1]);
385 int ret, fds[2] = { -1, -1 };
390 fds[0] = ret;
395 fds[1] = ret;
397 if (!copy_to_user(p->fds, fds, sizeof(fds))) {
398 fd_install(fds[0], files[0]);
399 fd_install(fds[1], files[1]);
404 if (fds[0] != -1)
405 put_unused_fd(fds[0]);
406 if (fds[1] != -1)
407 put_unused_fd(fds[1]);