Lines Matching defs:accept
837 struct io_accept accept;
5193 struct io_accept *accept = &req->accept;
5200 accept->addr = u64_to_user_ptr(READ_ONCE(sqe->addr));
5201 accept->addr_len = u64_to_user_ptr(READ_ONCE(sqe->addr2));
5202 accept->flags = READ_ONCE(sqe->accept_flags);
5203 accept->nofile = rlimit(RLIMIT_NOFILE);
5205 accept->file_slot = READ_ONCE(sqe->file_index);
5206 if (accept->file_slot && (accept->flags & SOCK_CLOEXEC))
5208 if (accept->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK))
5210 if (SOCK_NONBLOCK != O_NONBLOCK && (accept->flags & SOCK_NONBLOCK))
5211 accept->flags = (accept->flags & ~SOCK_NONBLOCK) | O_NONBLOCK;
5217 struct io_accept *accept = &req->accept;
5220 bool fixed = !!accept->file_slot;
5225 fd = __get_unused_fd_flags(accept->flags, accept->nofile);
5229 file = do_accept(req->file, file_flags, accept->addr, accept->addr_len,
5230 accept->flags);
5248 accept->file_slot - 1);
5341 IO_NETOP_PREP(accept);