Lines Matching refs:accept
1349 struct io_accept *accept = io_kiocb_to_cmd(req, struct io_accept);
1355 accept->addr = u64_to_user_ptr(READ_ONCE(sqe->addr));
1356 accept->addr_len = u64_to_user_ptr(READ_ONCE(sqe->addr2));
1357 accept->flags = READ_ONCE(sqe->accept_flags);
1358 accept->nofile = rlimit(RLIMIT_NOFILE);
1363 accept->file_slot = READ_ONCE(sqe->file_index);
1364 if (accept->file_slot) {
1365 if (accept->flags & SOCK_CLOEXEC)
1368 accept->file_slot != IORING_FILE_INDEX_ALLOC)
1371 if (accept->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK))
1373 if (SOCK_NONBLOCK != O_NONBLOCK && (accept->flags & SOCK_NONBLOCK))
1374 accept->flags = (accept->flags & ~SOCK_NONBLOCK) | O_NONBLOCK;
1382 struct io_accept *accept = io_kiocb_to_cmd(req, struct io_accept);
1385 bool fixed = !!accept->file_slot;
1393 fd = __get_unused_fd_flags(accept->flags, accept->nofile);
1397 file = do_accept(req->file, file_flags, accept->addr, accept->addr_len,
1398 accept->flags);
1421 accept->file_slot);