Lines Matching refs:accept
1231 struct io_accept *accept = io_kiocb_to_cmd(req, struct io_accept); in io_accept_prep() local
1237 accept->addr = u64_to_user_ptr(READ_ONCE(sqe->addr)); in io_accept_prep()
1238 accept->addr_len = u64_to_user_ptr(READ_ONCE(sqe->addr2)); in io_accept_prep()
1239 accept->flags = READ_ONCE(sqe->accept_flags); in io_accept_prep()
1240 accept->nofile = rlimit(RLIMIT_NOFILE); in io_accept_prep()
1245 accept->file_slot = READ_ONCE(sqe->file_index); in io_accept_prep()
1246 if (accept->file_slot) { in io_accept_prep()
1247 if (accept->flags & SOCK_CLOEXEC) in io_accept_prep()
1250 accept->file_slot != IORING_FILE_INDEX_ALLOC) in io_accept_prep()
1253 if (accept->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_accept_prep()
1255 if (SOCK_NONBLOCK != O_NONBLOCK && (accept->flags & SOCK_NONBLOCK)) in io_accept_prep()
1256 accept->flags = (accept->flags & ~SOCK_NONBLOCK) | O_NONBLOCK; in io_accept_prep()
1265 struct io_accept *accept = io_kiocb_to_cmd(req, struct io_accept); in io_accept() local
1268 bool fixed = !!accept->file_slot; in io_accept()
1274 fd = __get_unused_fd_flags(accept->flags, accept->nofile); in io_accept()
1278 file = do_accept(req->file, file_flags, accept->addr, accept->addr_len, in io_accept()
1279 accept->flags); in io_accept()
1302 accept->file_slot); in io_accept()