/linux-6.6.21/arch/sh/kernel/ |
D | smp.c | 362 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/ |
D | smp.c | 542 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()
|
D | asm-offsets.c | 191 OFFSET(MM_USERS, mm_struct, mm_users); in output_mm_defines()
|
/linux-6.6.21/arch/loongarch/kernel/ |
D | smp.c | 600 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()
|
D | asm-offsets.c | 188 OFFSET(MM_USERS, mm_struct, mm_users); in output_mm_defines()
|
/linux-6.6.21/lib/ |
D | is_single_threaded.c | 25 if (atomic_read(&mm->mm_users) == 1) in current_is_single_threaded()
|
/linux-6.6.21/mm/ |
D | init-mm.c | 35 .mm_users = ATOMIC_INIT(2),
|
D | mmu_notifier.c | 618 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()
|
D | debug.c | 197 mm->pgd, atomic_read(&mm->mm_users), in dump_mm()
|
/linux-6.6.21/include/linux/sched/ |
D | mm.h | 132 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/ |
D | active_mm.rst | 58 为了支持所有这些,“struct mm_struct”现在有两个计数器:一个是 “mm_users”
|
/linux-6.6.21/arch/parisc/include/asm/ |
D | mmu_context.h | 21 BUG_ON(atomic_read(&mm->mm_users) != 1); in init_new_context()
|
/linux-6.6.21/arch/alpha/kernel/ |
D | smp.c | 645 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/ |
D | tlbflush.h | 85 if (atomic_read(&mm->mm_users) == 0) in flush_tlb_mm()
|
/linux-6.6.21/kernel/sched/ |
D | membarrier.c | 342 (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/ |
D | smp.c | 297 if (likely(mm == current->active_mm && atomic_read(&mm->mm_users) == 1)) in smp_flush_tlb_mm()
|
/linux-6.6.21/arch/um/kernel/ |
D | tlb.c | 536 if (atomic_read(¤t->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/ |
D | asm-offsets.c | 118 DEFINE(MM_USERS, offsetof(struct mm_struct, mm_users)); in main()
|
/linux-6.6.21/arch/x86/kernel/ |
D | tboot.c | 100 .mm_users = ATOMIC_INIT(2),
|
/linux-6.6.21/kernel/ |
D | fork.c | 1262 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/ |
D | active_mm.rst | 62 "mm_users" counter that is how many "real address space users" there are,
|
/linux-6.6.21/arch/powerpc/mm/ |
D | hugetlbpage.c | 281 if (atomic_read(&tlb->mm->mm_users) < 2 || in hugepd_free()
|
/linux-6.6.21/arch/arc/mm/ |
D | tlb.c | 185 if (atomic_read(&mm->mm_users) == 0) in local_flush_tlb_mm()
|
/linux-6.6.21/include/linux/ |
D | mm_types.h | 725 atomic_t mm_users; member
|
/linux-6.6.21/Documentation/translations/zh_TW/process/ |
D | coding-style.rst | 625 這種 ``多級引用計數`` 的例子可以在內存管理 (``struct mm_struct``: mm_users 和
|