Lines Matching refs:ewq
544 struct userfaultfd_wait_queue *ewq) in userfaultfd_event_wait_completion() argument
551 ewq->ctx = ctx; in userfaultfd_event_wait_completion()
552 init_waitqueue_entry(&ewq->wq, current); in userfaultfd_event_wait_completion()
560 __add_wait_queue(&ctx->event_wqh, &ewq->wq); in userfaultfd_event_wait_completion()
563 if (ewq->msg.event == 0) in userfaultfd_event_wait_completion()
573 __remove_wait_queue(&ctx->event_wqh, &ewq->wq); in userfaultfd_event_wait_completion()
574 if (ewq->msg.event == UFFD_EVENT_FORK) { in userfaultfd_event_wait_completion()
579 ewq->msg.arg.reserved.reserved1; in userfaultfd_event_wait_completion()
611 struct userfaultfd_wait_queue *ewq) in userfaultfd_event_complete() argument
613 ewq->msg.event = 0; in userfaultfd_event_complete()
615 __remove_wait_queue(&ctx->event_wqh, &ewq->wq); in userfaultfd_event_complete()
674 struct userfaultfd_wait_queue ewq; in dup_fctx() local
676 msg_init(&ewq.msg); in dup_fctx()
678 ewq.msg.event = UFFD_EVENT_FORK; in dup_fctx()
679 ewq.msg.arg.reserved.reserved1 = (unsigned long)fctx->new; in dup_fctx()
681 userfaultfd_event_wait_completion(ctx, &ewq); in dup_fctx()
750 struct userfaultfd_wait_queue ewq; in mremap_userfaultfd_complete() local
760 msg_init(&ewq.msg); in mremap_userfaultfd_complete()
762 ewq.msg.event = UFFD_EVENT_REMAP; in mremap_userfaultfd_complete()
763 ewq.msg.arg.remap.from = from; in mremap_userfaultfd_complete()
764 ewq.msg.arg.remap.to = to; in mremap_userfaultfd_complete()
765 ewq.msg.arg.remap.len = len; in mremap_userfaultfd_complete()
767 userfaultfd_event_wait_completion(ctx, &ewq); in mremap_userfaultfd_complete()
775 struct userfaultfd_wait_queue ewq; in userfaultfd_remove() local
787 msg_init(&ewq.msg); in userfaultfd_remove()
789 ewq.msg.event = UFFD_EVENT_REMOVE; in userfaultfd_remove()
790 ewq.msg.arg.remove.start = start; in userfaultfd_remove()
791 ewq.msg.arg.remove.end = end; in userfaultfd_remove()
793 userfaultfd_event_wait_completion(ctx, &ewq); in userfaultfd_remove()
840 struct userfaultfd_wait_queue ewq; in userfaultfd_unmap_complete() local
843 msg_init(&ewq.msg); in userfaultfd_unmap_complete()
845 ewq.msg.event = UFFD_EVENT_UNMAP; in userfaultfd_unmap_complete()
846 ewq.msg.arg.remove.start = ctx->start; in userfaultfd_unmap_complete()
847 ewq.msg.arg.remove.end = ctx->end; in userfaultfd_unmap_complete()
849 userfaultfd_event_wait_completion(ctx->ctx, &ewq); in userfaultfd_unmap_complete()