Lines Matching defs:fctx
692 struct userfaultfd_fork_ctx *fctx;
702 list_for_each_entry(fctx, fcs, list)
703 if (fctx->orig == octx) {
704 ctx = fctx->new;
709 fctx = kmalloc(sizeof(*fctx), GFP_KERNEL);
710 if (!fctx)
715 kfree(fctx);
729 fctx->orig = octx;
730 fctx->new = ctx;
731 list_add_tail(&fctx->list, fcs);
738 static void dup_fctx(struct userfaultfd_fork_ctx *fctx)
740 struct userfaultfd_ctx *ctx = fctx->orig;
746 ewq.msg.arg.reserved.reserved1 = (unsigned long)fctx->new;
753 struct userfaultfd_fork_ctx *fctx, *n;
755 list_for_each_entry_safe(fctx, n, fcs, list) {
756 dup_fctx(fctx);
757 list_del(&fctx->list);
758 kfree(fctx);