Home
last modified time | relevance | path

Searched refs:vm_userfaultfd_ctx (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/include/linux/
Duserfaultfd_k.h98 struct vm_userfaultfd_ctx vm_ctx) in is_mergeable_vm_userfaultfd_ctx()
100 return vma->vm_userfaultfd_ctx.ctx == vm_ctx.ctx; in is_mergeable_vm_userfaultfd_ctx()
186 struct vm_userfaultfd_ctx *);
187 extern void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx *,
211 struct vm_userfaultfd_ctx vm_ctx) in is_mergeable_vm_userfaultfd_ctx()
260 struct vm_userfaultfd_ctx *ctx) in mremap_userfaultfd_prep()
264 static inline void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx *ctx, in mremap_userfaultfd_complete()
Dmm_types.h534 #define NULL_VM_UFFD_CTX ((struct vm_userfaultfd_ctx) { NULL, })
535 struct vm_userfaultfd_ctx { struct
539 #define NULL_VM_UFFD_CTX ((struct vm_userfaultfd_ctx) {}) argument
540 struct vm_userfaultfd_ctx {}; struct
662 struct vm_userfaultfd_ctx vm_userfaultfd_ctx; member
Dmm.h3227 struct file *, pgoff_t, struct mempolicy *, struct vm_userfaultfd_ctx,
/linux-6.6.21/fs/
Duserfaultfd.c133 struct userfaultfd_ctx *ctx = vma->vm_userfaultfd_ctx.ctx; in userfaultfd_wp_unpopulated()
438 ctx = vma->vm_userfaultfd_ctx.ctx; in handle_userfault()
659 if (vma->vm_userfaultfd_ctx.ctx == release_new_ctx) { in userfaultfd_event_wait_completion()
661 vma->vm_userfaultfd_ctx = NULL_VM_UFFD_CTX; in userfaultfd_event_wait_completion()
694 octx = vma->vm_userfaultfd_ctx.ctx; in dup_userfaultfd()
697 vma->vm_userfaultfd_ctx = NULL_VM_UFFD_CTX; in dup_userfaultfd()
734 vma->vm_userfaultfd_ctx.ctx = ctx; in dup_userfaultfd()
763 struct vm_userfaultfd_ctx *vm_ctx) in mremap_userfaultfd_prep()
767 ctx = vma->vm_userfaultfd_ctx.ctx; in mremap_userfaultfd_prep()
779 vma->vm_userfaultfd_ctx = NULL_VM_UFFD_CTX; in mremap_userfaultfd_prep()
[all …]
/linux-6.6.21/mm/
Dmmap.c722 struct vm_userfaultfd_ctx vm_userfaultfd_ctx, in is_mergeable_vma() argument
739 if (!is_mergeable_vm_userfaultfd_ctx(vma, vm_userfaultfd_ctx)) in is_mergeable_vma()
775 pgoff_t vm_pgoff, struct vm_userfaultfd_ctx vm_userfaultfd_ctx, in can_vma_merge_before() argument
778 if (is_mergeable_vma(vma, file, vm_flags, vm_userfaultfd_ctx, anon_name, true) && in can_vma_merge_before()
798 pgoff_t vm_pgoff, struct vm_userfaultfd_ctx vm_userfaultfd_ctx, in can_vma_merge_after() argument
801 if (is_mergeable_vma(vma, file, vm_flags, vm_userfaultfd_ctx, anon_name, false) && in can_vma_merge_after()
868 struct vm_userfaultfd_ctx vm_userfaultfd_ctx, in vma_merge() argument
908 pgoff, vm_userfaultfd_ctx, anon_name)) { in vma_merge()
917 vm_userfaultfd_ctx, anon_name)) { in vma_merge()
2727 pgoff, vma->vm_userfaultfd_ctx, NULL) : in mmap_region()
[all …]
Dmremap.c587 struct vm_userfaultfd_ctx *uf, struct list_head *uf_unmap) in move_vma()
802 unsigned long flags, struct vm_userfaultfd_ctx *uf, in mremap_to()
916 struct vm_userfaultfd_ctx uf = NULL_VM_UFFD_CTX; in SYSCALL_DEFINE5()
1059 vma->vm_userfaultfd_ctx, anon_vma_name(vma)); in SYSCALL_DEFINE5()
Duserfaultfd.c42 if (!dst_vma->vm_userfaultfd_ctx.ctx) in find_dst_vma()
Dmlock.c431 vma->vm_userfaultfd_ctx, anon_vma_name(vma)); in mlock_fixup()
Dmprotect.c634 vma->vm_userfaultfd_ctx, anon_vma_name(vma)); in mprotect_fixup()
Dmadvise.c155 vma->vm_userfaultfd_ctx, anon_name); in madvise_update_vma()
Dmempolicy.c839 vma->vm_userfaultfd_ctx, anon_vma_name(vma)); in mbind_range()