Home
last modified time | relevance | path

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

/linux-6.6.21/arch/x86/include/asm/
Dmmu_context.h60 int ldt_dup_context(struct mm_struct *oldmm, struct mm_struct *mm);
65 static inline int ldt_dup_context(struct mm_struct *oldmm, in ldt_dup_context() argument
94 static inline void dup_lam(struct mm_struct *oldmm, struct mm_struct *mm) in dup_lam() argument
96 mm->context.lam_cr3_mask = oldmm->context.lam_cr3_mask; in dup_lam()
97 mm->context.untag_mask = oldmm->context.untag_mask; in dup_lam()
124 static inline void dup_lam(struct mm_struct *oldmm, struct mm_struct *mm) in dup_lam() argument
195 static inline void arch_dup_pkeys(struct mm_struct *oldmm, in arch_dup_pkeys() argument
203 mm->context.pkey_allocation_map = oldmm->context.pkey_allocation_map; in arch_dup_pkeys()
204 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
208 static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument
[all …]
/linux-6.6.21/include/linux/
Dksm.h46 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
50 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) { in ksm_fork()
56 if (test_bit(MMF_VM_MERGE_ANY, &oldmm->flags)) in ksm_fork()
105 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
Dkhugepaged.h30 static inline void khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
32 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) in khugepaged_fork()
42 static inline void 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-6.6.21/kernel/
Dfork.c631 static void dup_mm_exe_file(struct mm_struct *mm, struct mm_struct *oldmm) in dup_mm_exe_file() argument
635 exe_file = get_mm_exe_file(oldmm); in dup_mm_exe_file()
647 struct mm_struct *oldmm) in dup_mmap() argument
653 VMA_ITERATOR(old_vmi, oldmm, 0); in dup_mmap()
657 if (mmap_write_lock_killable(oldmm)) { in dup_mmap()
661 flush_cache_dup_mm(oldmm); in dup_mmap()
662 uprobe_dup_mmap(oldmm, mm); in dup_mmap()
669 dup_mm_exe_file(mm, oldmm); in dup_mmap()
671 mm->total_vm = oldmm->total_vm; in dup_mmap()
672 mm->data_vm = oldmm->data_vm; in dup_mmap()
[all …]
/linux-6.6.21/arch/powerpc/include/asm/
Dmmu_context.h275 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()
/linux-6.6.21/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-6.6.21/include/asm-generic/
Dmm_hooks.h10 static inline int arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/linux-6.6.21/kernel/events/
Duprobes.c1567 void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument
1569 if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) { in uprobe_dup_mmap()