Searched refs:old_mm (Results 1 – 5 of 5) sorted by relevance
/linux/arch/x86/kernel/ |
A D | ldt.c | 449 int ldt_dup_context(struct mm_struct *old_mm, struct mm_struct *mm) in ldt_dup_context() argument 454 if (!old_mm) in ldt_dup_context() 457 mutex_lock(&old_mm->context.lock); in ldt_dup_context() 458 if (!old_mm->context.ldt) in ldt_dup_context() 461 new_ldt = alloc_ldt_struct(old_mm->context.ldt->nr_entries); in ldt_dup_context() 467 memcpy(new_ldt->entries, old_mm->context.ldt->entries, in ldt_dup_context() 480 mutex_unlock(&old_mm->context.lock); in ldt_dup_context()
|
/linux/fs/ |
A D | exec.c | 974 struct mm_struct *old_mm, *active_mm; in exec_mmap() local 979 old_mm = current->mm; in exec_mmap() 980 exec_mm_release(tsk, old_mm); in exec_mmap() 981 if (old_mm) in exec_mmap() 982 sync_mm_rss(old_mm); in exec_mmap() 988 if (old_mm) { in exec_mmap() 1023 if (old_mm) { in exec_mmap() 1024 mmap_read_unlock(old_mm); in exec_mmap() 1025 BUG_ON(active_mm != old_mm); in exec_mmap() 1027 mm_update_next_owner(old_mm); in exec_mmap() [all …]
|
/linux/arch/sparc/include/asm/ |
A D | mmu_context_32.h | 24 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,
|
A D | mmu_context_64.h | 80 static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *ts… in switch_mm() argument
|
/linux/arch/sparc/mm/ |
A 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()
|
Completed in 15 milliseconds