Lines Matching defs:accept
1610 struct io_accept *accept = io_kiocb_to_cmd(req, struct io_accept);
1615 accept->addr = u64_to_user_ptr(READ_ONCE(sqe->addr));
1616 accept->addr_len = u64_to_user_ptr(READ_ONCE(sqe->addr2));
1617 accept->flags = READ_ONCE(sqe->accept_flags);
1618 accept->nofile = rlimit(RLIMIT_NOFILE);
1619 accept->iou_flags = READ_ONCE(sqe->ioprio);
1620 if (accept->iou_flags & ~ACCEPT_FLAGS)
1623 accept->file_slot = READ_ONCE(sqe->file_index);
1624 if (accept->file_slot) {
1625 if (accept->flags & SOCK_CLOEXEC)
1627 if (accept->iou_flags & IORING_ACCEPT_MULTISHOT &&
1628 accept->file_slot != IORING_FILE_INDEX_ALLOC)
1631 if (accept->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK))
1633 if (SOCK_NONBLOCK != O_NONBLOCK && (accept->flags & SOCK_NONBLOCK))
1634 accept->flags = (accept->flags & ~SOCK_NONBLOCK) | O_NONBLOCK;
1635 if (accept->iou_flags & IORING_ACCEPT_MULTISHOT)
1637 if (accept->iou_flags & IORING_ACCEPT_DONTWAIT)
1644 struct io_accept *accept = io_kiocb_to_cmd(req, struct io_accept);
1646 bool fixed = !!accept->file_slot;
1655 accept->iou_flags & IORING_ACCEPT_POLL_FIRST)
1660 fd = __get_unused_fd_flags(accept->flags, accept->nofile);
1666 file = do_accept(req->file, &arg, accept->addr, accept->addr_len,
1667 accept->flags);
1673 !(accept->iou_flags & IORING_ACCEPT_DONTWAIT))
1683 accept->file_slot);