Home
last modified time | relevance | path

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

/kernel/
Dfork.c560 struct mm_struct *oldmm) in dup_mmap() argument
568 if (down_write_killable(&oldmm->mmap_sem)) { in dup_mmap()
572 flush_cache_dup_mm(oldmm); in dup_mmap()
573 uprobe_dup_mmap(oldmm, mm); in dup_mmap()
580 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); in dup_mmap()
582 mm->total_vm = oldmm->total_vm; in dup_mmap()
583 mm->data_vm = oldmm->data_vm; in dup_mmap()
584 mm->exec_vm = oldmm->exec_vm; in dup_mmap()
585 mm->stack_vm = oldmm->stack_vm; in dup_mmap()
590 retval = ksm_fork(mm, oldmm); in dup_mmap()
[all …]
/kernel/events/
Duprobes.c1255 void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument
1257 if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) { in uprobe_dup_mmap()
/kernel/sched/
Dcore.c2921 struct mm_struct *mm, *oldmm; in context_switch() local
2926 oldmm = prev->active_mm; in context_switch()
2935 next->active_mm = oldmm; in context_switch()
2936 atomic_inc(&oldmm->mm_count); in context_switch()
2937 enter_lazy_tlb(oldmm, next); in context_switch()
2939 switch_mm_irqs_off(oldmm, mm, next); in context_switch()
2943 rq->prev_mm = oldmm; in context_switch()