Lines Matching refs:accept

1570 	struct io_accept *accept = io_kiocb_to_cmd(req, struct io_accept);  in io_accept_prep()  local
1575 accept->addr = u64_to_user_ptr(READ_ONCE(sqe->addr)); in io_accept_prep()
1576 accept->addr_len = u64_to_user_ptr(READ_ONCE(sqe->addr2)); in io_accept_prep()
1577 accept->flags = READ_ONCE(sqe->accept_flags); in io_accept_prep()
1578 accept->nofile = rlimit(RLIMIT_NOFILE); in io_accept_prep()
1579 accept->iou_flags = READ_ONCE(sqe->ioprio); in io_accept_prep()
1580 if (accept->iou_flags & ~ACCEPT_FLAGS) in io_accept_prep()
1583 accept->file_slot = READ_ONCE(sqe->file_index); in io_accept_prep()
1584 if (accept->file_slot) { in io_accept_prep()
1585 if (accept->flags & SOCK_CLOEXEC) in io_accept_prep()
1587 if (accept->iou_flags & IORING_ACCEPT_MULTISHOT && in io_accept_prep()
1588 accept->file_slot != IORING_FILE_INDEX_ALLOC) in io_accept_prep()
1591 if (accept->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_accept_prep()
1593 if (SOCK_NONBLOCK != O_NONBLOCK && (accept->flags & SOCK_NONBLOCK)) in io_accept_prep()
1594 accept->flags = (accept->flags & ~SOCK_NONBLOCK) | O_NONBLOCK; in io_accept_prep()
1595 if (accept->iou_flags & IORING_ACCEPT_MULTISHOT) in io_accept_prep()
1597 if (accept->iou_flags & IORING_ACCEPT_DONTWAIT) in io_accept_prep()
1604 struct io_accept *accept = io_kiocb_to_cmd(req, struct io_accept); in io_accept() local
1606 bool fixed = !!accept->file_slot; in io_accept()
1615 accept->iou_flags & IORING_ACCEPT_POLL_FIRST) in io_accept()
1620 fd = __get_unused_fd_flags(accept->flags, accept->nofile); in io_accept()
1626 file = do_accept(req->file, &arg, accept->addr, accept->addr_len, in io_accept()
1627 accept->flags); in io_accept()
1633 !(accept->iou_flags & IORING_ACCEPT_DONTWAIT)) in io_accept()
1643 accept->file_slot); in io_accept()