Home
last modified time | relevance | path

Searched refs:oldmm (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/include/asm/
Dmmu_context.h66 int ldt_dup_context(struct mm_struct *oldmm, struct mm_struct *mm);
71 static inline int ldt_dup_context(struct mm_struct *oldmm, in ldt_dup_context() argument
150 static inline void arch_dup_pkeys(struct mm_struct *oldmm, in arch_dup_pkeys() argument
158 mm->context.pkey_allocation_map = oldmm->context.pkey_allocation_map; in arch_dup_pkeys()
159 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
163 static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument
165 arch_dup_pkeys(oldmm, mm); in arch_dup_mmap()
166 paravirt_arch_dup_mmap(oldmm, mm); in arch_dup_mmap()
167 return ldt_dup_context(oldmm, mm); in arch_dup_mmap()
Dparavirt.h318 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, in paravirt_arch_dup_mmap() argument
321 PVOP_VCALL2(mmu.dup_mmap, oldmm, mm); in paravirt_arch_dup_mmap()
813 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, in paravirt_arch_dup_mmap() argument
Dparavirt_types.h221 void (*dup_mmap)(struct mm_struct *oldmm,
/kernel/linux/linux-5.10/include/linux/
Dksm.h27 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
29 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) in ksm_fork()
59 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
Dkhugepaged.h43 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
45 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) in khugepaged_fork()
70 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
Duprobes.h121 extern void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm);
184 uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument
/kernel/linux/linux-5.10/kernel/
Dfork.c477 struct mm_struct *oldmm) in dup_mmap() argument
486 if (mmap_write_lock_killable(oldmm)) { in dup_mmap()
490 flush_cache_dup_mm(oldmm); in dup_mmap()
491 uprobe_dup_mmap(oldmm, mm); in dup_mmap()
498 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); in dup_mmap()
500 mm->total_vm = oldmm->total_vm; in dup_mmap()
501 mm->data_vm = oldmm->data_vm; in dup_mmap()
502 mm->exec_vm = oldmm->exec_vm; in dup_mmap()
503 mm->stack_vm = oldmm->stack_vm; in dup_mmap()
508 retval = ksm_fork(mm, oldmm); in dup_mmap()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dmmu_context.h272 void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm);
285 #define arch_dup_pkeys(oldmm, mm) argument
294 static inline int arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
297 arch_dup_pkeys(oldmm, mm); in arch_dup_mmap()
/kernel/linux/linux-5.10/drivers/oprofile/
Dbuffer_sync.c496 struct mm_struct *oldmm; in sync_buffer() local
537 oldmm = mm; in sync_buffer()
538 release_mm(oldmm); in sync_buffer()
540 if (mm != oldmm) in sync_buffer()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Dpkeys.c439 void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_pkeys() argument
445 mm_pkey_allocation_map(mm) = mm_pkey_allocation_map(oldmm); in arch_dup_pkeys()
446 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
/kernel/linux/linux-5.10/include/asm-generic/
Dmm_hooks.h10 static inline int arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/kernel/linux/linux-5.10/arch/um/include/asm/
Dmmu_context.h19 static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument
/kernel/linux/linux-5.10/kernel/events/
Duprobes.c1572 void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument
1574 if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) { in uprobe_dup_mmap()
/kernel/linux/linux-5.10/arch/x86/xen/
Dmmu_pv.c889 static void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in xen_dup_mmap() argument