/Linux-v4.19/mm/ |
D | mmu_context.c | 24 struct mm_struct *active_mm; in use_mm() local 28 active_mm = tsk->active_mm; in use_mm() 29 if (active_mm != mm) { in use_mm() 31 tsk->active_mm = mm; in use_mm() 34 switch_mm(active_mm, mm, tsk); in use_mm() 40 if (active_mm != mm) in use_mm() 41 mmdrop(active_mm); in use_mm()
|
/Linux-v4.19/arch/hexagon/mm/ |
D | vm_tlb.c | 43 if (mm->context.ptbase == current->active_mm->context.ptbase) in flush_tlb_range() 72 if (current->active_mm->context.ptbase == mm->context.ptbase) in flush_tlb_mm() 83 if (mm->context.ptbase == current->active_mm->context.ptbase) in flush_tlb_page()
|
/Linux-v4.19/arch/arc/kernel/ |
D | troubleshoot.c | 87 struct mm_struct *active_mm = current->active_mm; in show_faulting_vma() local 92 down_read(&active_mm->mmap_sem); in show_faulting_vma() 93 vma = find_vma(active_mm, address); in show_faulting_vma() 112 up_read(&active_mm->mmap_sem); in show_faulting_vma()
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | swsusp.c | 35 switch_mmu_context(current->active_mm, current->active_mm, NULL); in restore_processor_state()
|
/Linux-v4.19/arch/alpha/include/asm/ |
D | tlbflush.h | 85 flush_tlb_current(current->active_mm); in flush_tlb() 110 if (mm == current->active_mm) in flush_tlb_mm() 122 if (mm == current->active_mm) in flush_tlb_page()
|
/Linux-v4.19/arch/ia64/mm/ |
D | tlb.c | 243 struct mm_struct *active_mm = current->active_mm; in ia64_global_tlb_purge() local 247 if (mm != active_mm) { in ia64_global_tlb_purge() 249 if (mm && active_mm) { in ia64_global_tlb_purge() 272 if (mm != active_mm) { in ia64_global_tlb_purge() 273 activate_context(active_mm); in ia64_global_tlb_purge() 309 if (mm != current->active_mm) { in flush_tlb_range() 325 if (mm != current->active_mm || cpumask_weight(mm_cpumask(mm)) != 1) { in flush_tlb_range()
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | mmu_context_32.h | 32 #define activate_mm(active_mm, mm) switch_mm((active_mm), (mm), NULL) argument
|
D | mmu_context_64.h | 140 #define activate_mm(active_mm, mm) switch_mm(active_mm, mm, NULL) argument
|
D | switch_to_32.h | 61 cpumask_set_cpu(smp_processor_id(), mm_cpumask(next->active_mm)); \
|
/Linux-v4.19/arch/alpha/kernel/ |
D | smp.c | 149 current->active_mm = &init_mm; in smp_callin() 169 cpuid, current, current->active_mm)); in smp_callin() 644 if (mm == current->active_mm && !asn_locked()) in ipi_flush_tlb_mm() 655 if (mm == current->active_mm) { in flush_tlb_mm() 690 if (mm == current->active_mm && !asn_locked()) in ipi_flush_tlb_page() 704 if (mm == current->active_mm) { in flush_tlb_page() 743 if (mm == current->active_mm && !asn_locked()) in ipi_flush_icache_page() 760 if (mm == current->active_mm) { in flush_icache_user_range()
|
/Linux-v4.19/arch/ia64/include/asm/ |
D | tlbflush.h | 42 if (mm == current->active_mm) in local_finish_flush_tlb_mm() 81 if (vma->vm_mm == current->active_mm) in flush_tlb_page()
|
/Linux-v4.19/Documentation/vm/ |
D | active_mm.rst | 10 Subject: Re: active_mm 19 > Is there a brief description someplace on how "mm" vs. "active_mm" in 45 "stole" for such an anonymous user. For that, we have "tsk->active_mm", 49 non-NULL) the active_mm obviously always has to be the same as the real 52 For a anonymous process, tsk->mm == NULL, and tsk->active_mm is the
|
D | 00-INDEX | 3 active_mm.rst 4 - An explanation from Linus about tsk->active_mm vs tsk->mm.
|
/Linux-v4.19/arch/m68k/include/asm/ |
D | tlbflush.h | 81 if (mm == current->active_mm) in flush_tlb_mm() 87 if (vma->vm_mm == current->active_mm) { in flush_tlb_page() 98 if (vma->vm_mm == current->active_mm) in flush_tlb_range()
|
/Linux-v4.19/arch/arm64/include/asm/ |
D | efi.h | 126 if (mm != current->active_mm) { in efi_set_pgd() 144 update_saved_ttbr0(current, current->active_mm); in efi_set_pgd()
|
/Linux-v4.19/arch/hexagon/include/asm/ |
D | pgalloc.h | 126 current->active_mm->context.generation = kmap_generation; in pmd_populate_kernel() 136 ppmd = (pmd_t *)current->active_mm->pgd + pmdindex; in pmd_populate_kernel()
|
/Linux-v4.19/arch/sparc/power/ |
D | hibernate.c | 37 struct mm_struct *mm = current->active_mm; in restore_processor_state()
|
/Linux-v4.19/arch/sparc/mm/ |
D | fault_32.c | 51 (tsk->mm ? tsk->mm->context : tsk->active_mm->context)); in unhandled_fault() 54 (unsigned long) tsk->active_mm->pgd)); in unhandled_fault() 356 pgd = tsk->active_mm->pgd + offset; in do_sparc_fault()
|
/Linux-v4.19/arch/arm/mm/ |
D | tlb-v4.S | 35 act_mm r3 @ get current->active_mm
|
/Linux-v4.19/arch/openrisc/kernel/ |
D | asm-offsets.c | 50 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); in main()
|
/Linux-v4.19/arch/xtensa/mm/ |
D | tlb.c | 67 if (mm == current->active_mm) { in local_flush_tlb_mm() 176 mm = task->active_mm; in get_pte_for_vaddr()
|
/Linux-v4.19/arch/sh/mm/ |
D | tlb-sh3.c | 36 if (vma && current->active_mm != vma->vm_mm) in __update_tlb()
|
/Linux-v4.19/arch/riscv/kernel/ |
D | smpboot.c | 104 current->active_mm = mm; in smp_callin()
|
/Linux-v4.19/arch/parisc/include/asm/ |
D | tlbflush.h | 73 if (mm == current->active_mm) in flush_tlb_mm()
|
/Linux-v4.19/arch/mips/kvm/ |
D | tlb.c | 643 cpumask_clear_cpu(cpu, mm_cpumask(current->active_mm)); in kvm_mips_suspend_mm() 644 current->active_mm = &init_mm; in kvm_mips_suspend_mm() 658 current->active_mm = current->mm; in kvm_mips_resume_mm()
|