Home
last modified time | relevance | path

Searched refs:mm_users (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.6.21/arch/sh/kernel/
Dsmp.c362 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_mm()
394 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_range()
437 if ((atomic_read(&vma->vm_mm->mm_users) != 1) || in flush_tlb_page()
/linux-6.6.21/arch/mips/kernel/
Dsmp.c542 if (atomic_read(&mm->mm_users) == 0) in flush_tlb_mm()
552 } else if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_mm()
602 } else if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_range()
669 } else if ((atomic_read(&vma->vm_mm->mm_users) != 1) || in flush_tlb_page()
Dasm-offsets.c191 OFFSET(MM_USERS, mm_struct, mm_users); in output_mm_defines()
/linux-6.6.21/arch/loongarch/kernel/
Dsmp.c600 if (atomic_read(&mm->mm_users) == 0) in flush_tlb_mm()
605 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_mm()
638 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_range()
685 if ((atomic_read(&vma->vm_mm->mm_users) != 1) || (current->mm != vma->vm_mm)) { in flush_tlb_page()
Dasm-offsets.c188 OFFSET(MM_USERS, mm_struct, mm_users); in output_mm_defines()
/linux-6.6.21/lib/
Dis_single_threaded.c25 if (atomic_read(&mm->mm_users) == 1) in current_is_single_threaded()
/linux-6.6.21/mm/
Dinit-mm.c35 .mm_users = ATOMIC_INIT(2),
Dmmu_notifier.c618 BUG_ON(atomic_read(&mm->mm_users) <= 0); in __mmu_notifier_register()
686 BUG_ON(atomic_read(&mm->mm_users) <= 0); in __mmu_notifier_register()
924 if (WARN_ON(atomic_read(&mm->mm_users) <= 0)) in __mmu_interval_notifier_insert()
Ddebug.c197 mm->pgd, atomic_read(&mm->mm_users), in dump_mm()
/linux-6.6.21/include/linux/sched/
Dmm.h132 atomic_inc(&mm->mm_users); in mmget()
137 return atomic_inc_not_zero(&mm->mm_users); in mmget_not_zero()
/linux-6.6.21/Documentation/translations/zh_CN/mm/
Dactive_mm.rst58 为了支持所有这些,“struct mm_struct”现在有两个计数器:一个是 “mm_users
/linux-6.6.21/arch/parisc/include/asm/
Dmmu_context.h21 BUG_ON(atomic_read(&mm->mm_users) != 1); in init_new_context()
/linux-6.6.21/arch/alpha/kernel/
Dsmp.c645 if (atomic_read(&mm->mm_users) <= 1) { in flush_tlb_mm()
692 if (atomic_read(&mm->mm_users) <= 1) { in flush_tlb_page()
746 if (atomic_read(&mm->mm_users) <= 1) { in flush_icache_user_page()
/linux-6.6.21/arch/ia64/include/asm/
Dtlbflush.h85 if (atomic_read(&mm->mm_users) == 0) in flush_tlb_mm()
/linux-6.6.21/kernel/sched/
Dmembarrier.c342 (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1)) in membarrier_private_expedited()
437 if (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1) { in sync_runqueues_membarrier_state()
/linux-6.6.21/arch/ia64/kernel/
Dsmp.c297 if (likely(mm == current->active_mm && atomic_read(&mm->mm_users) == 1)) in smp_flush_tlb_mm()
/linux-6.6.21/arch/um/kernel/
Dtlb.c536 if (atomic_read(&current->mm->mm_users) == 0) in flush_tlb_all()
564 if (atomic_read(&mm->mm_users) == 0) in fix_range()
/linux-6.6.21/arch/xtensa/kernel/
Dasm-offsets.c118 DEFINE(MM_USERS, offsetof(struct mm_struct, mm_users)); in main()
/linux-6.6.21/arch/x86/kernel/
Dtboot.c100 .mm_users = ATOMIC_INIT(2),
/linux-6.6.21/kernel/
Dfork.c1262 atomic_set(&mm->mm_users, 1); in mm_init()
1343 VM_BUG_ON(atomic_read(&mm->mm_users)); in __mmput()
1370 if (atomic_dec_and_test(&mm->mm_users)) in mmput()
1386 if (atomic_dec_and_test(&mm->mm_users)) { in mmput_async()
1629 if (atomic_read(&mm->mm_users) > 1) { in mm_release()
/linux-6.6.21/Documentation/mm/
Dactive_mm.rst62 "mm_users" counter that is how many "real address space users" there are,
/linux-6.6.21/arch/powerpc/mm/
Dhugetlbpage.c281 if (atomic_read(&tlb->mm->mm_users) < 2 || in hugepd_free()
/linux-6.6.21/arch/arc/mm/
Dtlb.c185 if (atomic_read(&mm->mm_users) == 0) in local_flush_tlb_mm()
/linux-6.6.21/include/linux/
Dmm_types.h725 atomic_t mm_users; member
/linux-6.6.21/Documentation/translations/zh_TW/process/
Dcoding-style.rst625 這種 ``多級引用計數`` 的例子可以在內存管理 (``struct mm_struct``: mm_users

12