/linux-6.12.1/arch/sh/kernel/ |
D | smp.c | 366 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_mm() 398 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_range() 441 if ((atomic_read(&vma->vm_mm->mm_users) != 1) || in flush_tlb_page()
|
/linux-6.12.1/arch/mips/kernel/ |
D | smp.c | 543 if (atomic_read(&mm->mm_users) == 0) in flush_tlb_mm() 553 } else if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_mm() 603 } else if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_range() 670 } else if ((atomic_read(&vma->vm_mm->mm_users) != 1) || in flush_tlb_page()
|
D | asm-offsets.c | 192 OFFSET(MM_USERS, mm_struct, mm_users); in output_mm_defines()
|
/linux-6.12.1/arch/loongarch/kernel/ |
D | smp.c | 640 if (atomic_read(&mm->mm_users) == 0) in flush_tlb_mm() 645 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_mm() 678 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { in flush_tlb_range() 725 if ((atomic_read(&vma->vm_mm->mm_users) != 1) || (current->mm != vma->vm_mm)) { in flush_tlb_page()
|
D | asm-offsets.c | 189 OFFSET(MM_USERS, mm_struct, mm_users); in output_mm_defines()
|
/linux-6.12.1/lib/ |
D | is_single_threaded.c | 25 if (atomic_read(&mm->mm_users) == 1) in current_is_single_threaded()
|
/linux-6.12.1/mm/ |
D | init-mm.c | 35 .mm_users = ATOMIC_INIT(2),
|
D | mmu_notifier.c | 603 BUG_ON(atomic_read(&mm->mm_users) <= 0); in __mmu_notifier_register() 671 BUG_ON(atomic_read(&mm->mm_users) <= 0); in __mmu_notifier_register() 909 if (WARN_ON(atomic_read(&mm->mm_users) <= 0)) in __mmu_interval_notifier_insert()
|
D | debug.c | 219 mm->pgd, atomic_read(&mm->mm_users), in dump_mm()
|
D | mprotect.c | 105 atomic_read(&vma->vm_mm->mm_users) == 1) in change_pte_range()
|
D | oom_kill.c | 893 if (atomic_read(&mm->mm_users) <= 1) in task_will_free_mem()
|
/linux-6.12.1/include/linux/sched/ |
D | mm.h | 133 atomic_inc(&mm->mm_users); in mmget() 138 return atomic_inc_not_zero(&mm->mm_users); in mmget_not_zero()
|
/linux-6.12.1/Documentation/translations/zh_CN/mm/ |
D | active_mm.rst | 58 为了支持所有这些,“struct mm_struct”现在有两个计数器:一个是 “mm_users”
|
/linux-6.12.1/arch/alpha/kernel/ |
D | smp.c | 641 if (atomic_read(&mm->mm_users) <= 1) { in flush_tlb_mm() 688 if (atomic_read(&mm->mm_users) <= 1) { in flush_tlb_page() 742 if (atomic_read(&mm->mm_users) <= 1) { in flush_icache_user_page()
|
/linux-6.12.1/arch/parisc/include/asm/ |
D | mmu_context.h | 21 BUG_ON(atomic_read(&mm->mm_users) != 1); in init_new_context()
|
/linux-6.12.1/kernel/sched/ |
D | membarrier.c | 343 (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1)) in membarrier_private_expedited() 442 if (atomic_read(&mm->mm_users) == 1 || num_online_cpus() == 1) { in sync_runqueues_membarrier_state()
|
/linux-6.12.1/arch/um/kernel/ |
D | tlb.c | 219 if (atomic_read(¤t->mm->mm_users) == 0) in flush_tlb_all()
|
/linux-6.12.1/arch/xtensa/kernel/ |
D | asm-offsets.c | 118 DEFINE(MM_USERS, offsetof(struct mm_struct, mm_users)); in main()
|
/linux-6.12.1/arch/x86/kernel/ |
D | tboot.c | 100 .mm_users = ATOMIC_INIT(2),
|
/linux-6.12.1/kernel/ |
D | fork.c | 1260 atomic_set(&mm->mm_users, 1); in mm_init() 1342 VM_BUG_ON(atomic_read(&mm->mm_users)); in __mmput() 1369 if (atomic_dec_and_test(&mm->mm_users)) in mmput() 1385 if (atomic_dec_and_test(&mm->mm_users)) { in mmput_async() 1618 if (atomic_read(&mm->mm_users) > 1) { in mm_release()
|
D | exit.c | 492 if (atomic_read(&mm->mm_users) <= 1) { in mm_update_next_owner() 516 if (atomic_read(&mm->mm_users) <= 1) in mm_update_next_owner()
|
/linux-6.12.1/Documentation/mm/ |
D | active_mm.rst | 62 "mm_users" counter that is how many "real address space users" there are,
|
/linux-6.12.1/arch/arc/mm/ |
D | tlb.c | 185 if (atomic_read(&mm->mm_users) == 0) in local_flush_tlb_mm()
|
/linux-6.12.1/include/linux/ |
D | mm_types.h | 838 atomic_t mm_users; member
|
/linux-6.12.1/Documentation/translations/zh_CN/process/ |
D | coding-style.rst | 704 这种 ``多级引用计数`` 的例子可以在内存管理 (``struct mm_struct``: mm_users 和
|