Searched refs:old_mm (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | ldt.c | 443 int ldt_dup_context(struct mm_struct *old_mm, struct mm_struct *mm) in ldt_dup_context() argument 448 if (!old_mm) in ldt_dup_context() 451 mutex_lock(&old_mm->context.lock); in ldt_dup_context() 452 if (!old_mm->context.ldt) in ldt_dup_context() 455 new_ldt = alloc_ldt_struct(old_mm->context.ldt->nr_entries); in ldt_dup_context() 461 memcpy(new_ldt->entries, old_mm->context.ldt->entries, in ldt_dup_context() 474 mutex_unlock(&old_mm->context.lock); in ldt_dup_context()
|
/kernel/linux/linux-5.10/fs/ |
D | exec.c | 980 struct mm_struct *old_mm, *active_mm; in exec_mmap() local 985 old_mm = current->mm; in exec_mmap() 986 exec_mm_release(tsk, old_mm); in exec_mmap() 987 if (old_mm) in exec_mmap() 988 sync_mm_rss(old_mm); in exec_mmap() 994 if (old_mm) { in exec_mmap() 1001 mmap_read_lock(old_mm); in exec_mmap() 1002 if (unlikely(old_mm->core_state)) { in exec_mmap() 1003 mmap_read_unlock(old_mm); in exec_mmap() 1031 if (old_mm) { in exec_mmap() [all …]
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | mmu_context_32.h | 26 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,
|
D | mmu_context_64.h | 81 static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *ts… in switch_mm() argument
|
/kernel/linux/linux-5.10/arch/sparc/mm/ |
D | srmmu.c | 413 static inline void alloc_context(struct mm_struct *old_mm, struct mm_struct *mm) in alloc_context() argument 426 if (ctxp->ctx_mm == old_mm) in alloc_context() 471 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, in switch_mm() argument 478 alloc_context(old_mm, mm); in switch_mm()
|