Searched refs:old_mm (Results 1 – 6 of 6) sorted by relevance
/linux-4.1.27/arch/cris/mm/ |
D | tlb.c | 38 struct mm_struct *old_mm; in alloc_context() local 44 old_mm = page_id_map[map_replace_ptr]; in alloc_context() 46 if(old_mm) { in alloc_context() 50 flush_tlb_mm(old_mm); in alloc_context() 52 old_mm->context.page_id = NO_CONTEXT; in alloc_context()
|
/linux-4.1.27/arch/x86/kernel/ |
D | ldt.c | 109 struct mm_struct *old_mm; in init_new_context() local 113 old_mm = current->mm; in init_new_context() 114 if (!old_mm) { in init_new_context() 119 mutex_lock(&old_mm->context.lock); in init_new_context() 120 if (!old_mm->context.ldt) { in init_new_context() 125 new_ldt = alloc_ldt_struct(old_mm->context.ldt->size); in init_new_context() 131 memcpy(new_ldt->entries, old_mm->context.ldt->entries, in init_new_context() 138 mutex_unlock(&old_mm->context.lock); in init_new_context()
|
/linux-4.1.27/fs/ |
D | exec.c | 840 struct mm_struct *old_mm, *active_mm; in exec_mmap() local 844 old_mm = current->mm; in exec_mmap() 845 mm_release(tsk, old_mm); in exec_mmap() 847 if (old_mm) { in exec_mmap() 848 sync_mm_rss(old_mm); in exec_mmap() 855 down_read(&old_mm->mmap_sem); in exec_mmap() 856 if (unlikely(old_mm->core_state)) { in exec_mmap() 857 up_read(&old_mm->mmap_sem); in exec_mmap() 869 if (old_mm) { in exec_mmap() 870 up_read(&old_mm->mmap_sem); in exec_mmap() [all …]
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | mmu_context_32.h | 25 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,
|
D | mmu_context_64.h | 74 static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *ts… in switch_mm() argument
|
/linux-4.1.27/arch/sparc/mm/ |
D | srmmu.c | 404 static inline void alloc_context(struct mm_struct *old_mm, struct mm_struct *mm) in alloc_context() argument 417 if (ctxp->ctx_mm == old_mm) in alloc_context() 460 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, in switch_mm() argument 467 alloc_context(old_mm, mm); in switch_mm()
|