Home
last modified time | relevance | path

Searched refs:active_mm (Results 1 – 25 of 108) sorted by relevance

12345

/kernel/linux/linux-5.10/arch/hexagon/mm/
Dvm_tlb.c30 if (mm->context.ptbase == current->active_mm->context.ptbase) in flush_tlb_range()
59 if (current->active_mm->context.ptbase == mm->context.ptbase) in flush_tlb_mm()
70 if (mm->context.ptbase == current->active_mm->context.ptbase) in flush_tlb_page()
/kernel/linux/linux-5.10/arch/arc/kernel/
Dtroubleshoot.c80 struct mm_struct *active_mm = current->active_mm; in show_faulting_vma() local
85 mmap_read_lock(active_mm); in show_faulting_vma()
86 vma = find_vma(active_mm, address); in show_faulting_vma()
107 mmap_read_unlock(active_mm); in show_faulting_vma()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dswsusp.c31 switch_mmu_context(current->active_mm, current->active_mm, NULL); in restore_processor_state()
/kernel/linux/linux-5.10/arch/alpha/include/asm/
Dtlbflush.h84 flush_tlb_current(current->active_mm); in flush_tlb()
109 if (mm == current->active_mm) in flush_tlb_mm()
121 if (mm == current->active_mm) in flush_tlb_page()
Dcacheflush.h43 if (current->active_mm == mm) in flush_icache_user_page()
/kernel/linux/linux-5.10/arch/ia64/mm/
Dtlb.c252 struct mm_struct *active_mm = current->active_mm; in ia64_global_tlb_purge() local
256 if (mm != active_mm) { in ia64_global_tlb_purge()
258 if (mm && active_mm) { in ia64_global_tlb_purge()
281 if (mm != active_mm) { in ia64_global_tlb_purge()
282 activate_context(active_mm); in ia64_global_tlb_purge()
319 if (mm != current->active_mm) { in __flush_tlb_range()
335 if (mm != current->active_mm || cpumask_weight(mm_cpumask(mm)) != 1) { in __flush_tlb_range()
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dmmu_context_32.h32 #define activate_mm(active_mm, mm) switch_mm((active_mm), (mm), NULL) argument
Dmmu_context_64.h140 #define activate_mm(active_mm, mm) switch_mm(active_mm, mm, NULL) argument
Dswitch_to_32.h61 cpumask_set_cpu(smp_processor_id(), mm_cpumask(next->active_mm)); \
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dsmp.c147 current->active_mm = &init_mm; in smp_callin()
167 cpuid, current, current->active_mm)); in smp_callin()
638 if (mm == current->active_mm && !asn_locked()) in ipi_flush_tlb_mm()
649 if (mm == current->active_mm) { in flush_tlb_mm()
682 if (mm == current->active_mm && !asn_locked()) in ipi_flush_tlb_page()
696 if (mm == current->active_mm) { in flush_tlb_page()
733 if (mm == current->active_mm && !asn_locked()) in ipi_flush_icache_page()
750 if (mm == current->active_mm) { in flush_icache_user_page()
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Defi.h121 if (mm != current->active_mm) { in efi_set_pgd()
139 update_saved_ttbr0(current, current->active_mm); in efi_set_pgd()
/kernel/linux/linux-5.10/arch/hexagon/include/asm/
Dpgalloc.h74 current->active_mm->context.generation = kmap_generation; in pmd_populate_kernel()
84 ppmd = (pmd_t *)current->active_mm->pgd + pmdindex; in pmd_populate_kernel()
/kernel/linux/linux-5.10/Documentation/vm/
Dactive_mm.rst10 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
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dtlbflush.h81 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()
/kernel/linux/linux-5.10/drivers/firmware/efi/
Driscv-runtime.c136 switch_mm(current->active_mm, &efi_mm, NULL); in efi_virtmap_load()
141 switch_mm(&efi_mm, current->active_mm, NULL); in efi_virtmap_unload()
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Dtlbflush.h67 if (mm == current->active_mm) in local_finish_flush_tlb_mm()
106 if (vma->vm_mm == current->active_mm) in flush_tlb_page()
/kernel/linux/linux-5.10/kernel/
Dkthread.c1314 struct mm_struct *active_mm; in kthread_use_mm() local
1323 active_mm = tsk->active_mm; in kthread_use_mm()
1324 if (active_mm != mm) { in kthread_use_mm()
1326 tsk->active_mm = mm; in kthread_use_mm()
1329 switch_mm_irqs_off(active_mm, mm, tsk); in kthread_use_mm()
1336 if (active_mm != mm) in kthread_use_mm()
1337 mmdrop(active_mm); in kthread_use_mm()
/kernel/linux/linux-5.10/arch/sparc/power/
Dhibernate.c37 struct mm_struct *mm = current->active_mm; in restore_processor_state()
/kernel/linux/linux-5.10/arch/sparc/mm/
Dfault_32.c50 (tsk->mm ? tsk->mm->context : tsk->active_mm->context)); in unhandled_fault()
53 (unsigned long) tsk->active_mm->pgd)); in unhandled_fault()
343 pgd = tsk->active_mm->pgd + offset; in do_sparc_fault()
/kernel/linux/linux-5.10/arch/arm/mm/
Dtlb-v4.S32 act_mm r3 @ get current->active_mm
Dinit.c564 set_section_perms(perms, n, true, current->active_mm); in update_sections_early()
600 current->active_mm); in set_kernel_text_rw()
609 current->active_mm); in set_kernel_text_ro()
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dtlbflush.h58 if (mm == current->active_mm) in flush_tlb_mm()
/kernel/linux/linux-5.10/arch/openrisc/kernel/
Dasm-offsets.c45 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); in main()
/kernel/linux/linux-5.10/arch/sh/mm/
Dtlb-sh3.c34 if (vma && current->active_mm != vma->vm_mm) in __update_tlb()
/kernel/linux/linux-5.10/arch/riscv/mm/
Dcacheflush.c59 if (mm == current->active_mm && local) { in flush_icache_mm()

12345