Home
last modified time | relevance | path

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

/Linux-v5.4/arch/x86/include/asm/
Dmmu_context.h86 int ldt_dup_context(struct mm_struct *oldmm, struct mm_struct *mm);
91 static inline int ldt_dup_context(struct mm_struct *oldmm, in ldt_dup_context() argument
236 static inline void arch_dup_pkeys(struct mm_struct *oldmm, in arch_dup_pkeys() argument
244 mm->context.pkey_allocation_map = oldmm->context.pkey_allocation_map; in arch_dup_pkeys()
245 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
249 static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument
251 arch_dup_pkeys(oldmm, mm); in arch_dup_mmap()
252 paravirt_arch_dup_mmap(oldmm, mm); in arch_dup_mmap()
253 return ldt_dup_context(oldmm, mm); in arch_dup_mmap()
Dparavirt.h308 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, in paravirt_arch_dup_mmap() argument
311 PVOP_VCALL2(mmu.dup_mmap, oldmm, mm); in paravirt_arch_dup_mmap()
936 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, in paravirt_arch_dup_mmap() argument
Dparavirt_types.h227 void (*dup_mmap)(struct mm_struct *oldmm,
/Linux-v5.4/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()
61 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
Dkhugepaged.h41 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
43 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) in khugepaged_fork()
67 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
/Linux-v5.4/arch/powerpc/include/asm/
Dmmu_context.h249 void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm);
262 #define arch_dup_pkeys(oldmm, mm) argument
271 static inline int arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
274 arch_dup_pkeys(oldmm, mm); in arch_dup_mmap()
/Linux-v5.4/kernel/
Dfork.c479 struct mm_struct *oldmm) in dup_mmap() argument
488 if (down_write_killable(&oldmm->mmap_sem)) { in dup_mmap()
492 flush_cache_dup_mm(oldmm); in dup_mmap()
493 uprobe_dup_mmap(oldmm, mm); in dup_mmap()
500 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); in dup_mmap()
502 mm->total_vm = oldmm->total_vm; in dup_mmap()
503 mm->data_vm = oldmm->data_vm; in dup_mmap()
504 mm->exec_vm = oldmm->exec_vm; in dup_mmap()
505 mm->stack_vm = oldmm->stack_vm; in dup_mmap()
510 retval = ksm_fork(mm, oldmm); in dup_mmap()
[all …]
/Linux-v5.4/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()
/Linux-v5.4/arch/powerpc/mm/book3s64/
Dpkeys.c420 void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_pkeys() argument
426 mm_pkey_allocation_map(mm) = mm_pkey_allocation_map(oldmm); in arch_dup_pkeys()
427 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
/Linux-v5.4/include/asm-generic/
Dmm_hooks.h10 static inline int arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/Linux-v5.4/arch/um/include/asm/
Dmmu_context.h18 static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument
/Linux-v5.4/arch/unicore32/include/asm/
Dmmu_context.h81 static inline int arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/Linux-v5.4/kernel/events/
Duprobes.c1573 void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument
1575 if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) { in uprobe_dup_mmap()
/Linux-v5.4/arch/x86/xen/
Dmmu_pv.c984 static void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in xen_dup_mmap() argument