Lines Matching refs:accept

1511 	struct io_accept *accept = io_kiocb_to_cmd(req, struct io_accept);  in io_accept_prep()  local
1516 accept->addr = u64_to_user_ptr(READ_ONCE(sqe->addr)); in io_accept_prep()
1517 accept->addr_len = u64_to_user_ptr(READ_ONCE(sqe->addr2)); in io_accept_prep()
1518 accept->flags = READ_ONCE(sqe->accept_flags); in io_accept_prep()
1519 accept->nofile = rlimit(RLIMIT_NOFILE); in io_accept_prep()
1520 accept->iou_flags = READ_ONCE(sqe->ioprio); in io_accept_prep()
1521 if (accept->iou_flags & ~ACCEPT_FLAGS) in io_accept_prep()
1524 accept->file_slot = READ_ONCE(sqe->file_index); in io_accept_prep()
1525 if (accept->file_slot) { in io_accept_prep()
1526 if (accept->flags & SOCK_CLOEXEC) in io_accept_prep()
1528 if (accept->iou_flags & IORING_ACCEPT_MULTISHOT && in io_accept_prep()
1529 accept->file_slot != IORING_FILE_INDEX_ALLOC) in io_accept_prep()
1532 if (accept->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_accept_prep()
1534 if (SOCK_NONBLOCK != O_NONBLOCK && (accept->flags & SOCK_NONBLOCK)) in io_accept_prep()
1535 accept->flags = (accept->flags & ~SOCK_NONBLOCK) | O_NONBLOCK; in io_accept_prep()
1536 if (accept->iou_flags & IORING_ACCEPT_MULTISHOT) in io_accept_prep()
1538 if (accept->iou_flags & IORING_ACCEPT_DONTWAIT) in io_accept_prep()
1545 struct io_accept *accept = io_kiocb_to_cmd(req, struct io_accept); in io_accept() local
1547 bool fixed = !!accept->file_slot; in io_accept()
1556 accept->iou_flags & IORING_ACCEPT_POLL_FIRST) in io_accept()
1561 fd = __get_unused_fd_flags(accept->flags, accept->nofile); in io_accept()
1567 file = do_accept(req->file, &arg, accept->addr, accept->addr_len, in io_accept()
1568 accept->flags); in io_accept()
1574 !(accept->iou_flags & IORING_ACCEPT_DONTWAIT)) { in io_accept()
1592 accept->file_slot); in io_accept()