Home
last modified time | relevance | path

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

/Linux-v6.1/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
154 static inline void arch_dup_pkeys(struct mm_struct *oldmm, in arch_dup_pkeys() argument
162 mm->context.pkey_allocation_map = oldmm->context.pkey_allocation_map; in arch_dup_pkeys()
163 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
167 static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument
169 arch_dup_pkeys(oldmm, mm); in arch_dup_mmap()
170 paravirt_arch_dup_mmap(oldmm, mm); in arch_dup_mmap()
171 return ldt_dup_context(oldmm, mm); in arch_dup_mmap()
Dparavirt.h341 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, in paravirt_arch_dup_mmap() argument
344 PVOP_VCALL2(mmu.dup_mmap, oldmm, mm); in paravirt_arch_dup_mmap()
777 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm,
Dparavirt_types.h183 void (*dup_mmap)(struct mm_struct *oldmm,
/Linux-v6.1/include/linux/
Dkhugepaged.h29 static inline void khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
31 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) in khugepaged_fork()
41 static inline void khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
Dksm.h24 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
26 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) in ksm_fork()
56 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_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-v6.1/kernel/
Dfork.c563 static void dup_mm_exe_file(struct mm_struct *mm, struct mm_struct *oldmm) in dup_mm_exe_file() argument
567 exe_file = get_mm_exe_file(oldmm); in dup_mm_exe_file()
579 struct mm_struct *oldmm) in dup_mmap() argument
585 MA_STATE(old_mas, &oldmm->mm_mt, 0, 0); in dup_mmap()
589 if (mmap_write_lock_killable(oldmm)) { in dup_mmap()
593 flush_cache_dup_mm(oldmm); in dup_mmap()
594 uprobe_dup_mmap(oldmm, mm); in dup_mmap()
601 dup_mm_exe_file(mm, oldmm); in dup_mmap()
603 mm->total_vm = oldmm->total_vm; in dup_mmap()
604 mm->data_vm = oldmm->data_vm; in dup_mmap()
[all …]
/Linux-v6.1/arch/powerpc/include/asm/
Dmmu_context.h274 void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm);
284 #define arch_dup_pkeys(oldmm, mm) argument
293 static inline int arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
296 arch_dup_pkeys(oldmm, mm); in arch_dup_mmap()
/Linux-v6.1/arch/powerpc/mm/book3s64/
Dpkeys.c460 void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_pkeys() argument
466 mm_pkey_allocation_map(mm) = mm_pkey_allocation_map(oldmm); in arch_dup_pkeys()
467 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
/Linux-v6.1/include/asm-generic/
Dmm_hooks.h10 static inline int arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/Linux-v6.1/kernel/events/
Duprobes.c1570 void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument
1572 if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) { in uprobe_dup_mmap()
/Linux-v6.1/arch/x86/xen/
Dmmu_pv.c895 static void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in xen_dup_mmap() argument