Lines Matching defs:fctx
636 struct userfaultfd_fork_ctx *fctx;
645 list_for_each_entry(fctx, fcs, list)
646 if (fctx->orig == octx) {
647 ctx = fctx->new;
652 fctx = kmalloc(sizeof(*fctx), GFP_KERNEL);
653 if (!fctx)
658 kfree(fctx);
672 fctx->orig = octx;
673 fctx->new = ctx;
674 list_add_tail(&fctx->list, fcs);
681 static void dup_fctx(struct userfaultfd_fork_ctx *fctx)
683 struct userfaultfd_ctx *ctx = fctx->orig;
689 ewq.msg.arg.reserved.reserved1 = (unsigned long)fctx->new;
696 struct userfaultfd_fork_ctx *fctx, *n;
698 list_for_each_entry_safe(fctx, n, fcs, list) {
699 dup_fctx(fctx);
700 list_del(&fctx->list);
701 kfree(fctx);