Home
last modified time | relevance | path

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

12

/linux-6.12.1/arch/sh/kernel/
Dsmp.c366 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/
Dsmp.c543 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()
Dasm-offsets.c192 OFFSET(MM_USERS, mm_struct, mm_users); in output_mm_defines()
/linux-6.12.1/arch/loongarch/kernel/
Dsmp.c640 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()
Dasm-offsets.c189 OFFSET(MM_USERS, mm_struct, mm_users); in output_mm_defines()
/linux-6.12.1/lib/
Dis_single_threaded.c25 if (atomic_read(&mm->mm_users) == 1) in current_is_single_threaded()
/linux-6.12.1/mm/
Dinit-mm.c35 .mm_users = ATOMIC_INIT(2),
Dmmu_notifier.c603 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()
Ddebug.c219 mm->pgd, atomic_read(&mm->mm_users), in dump_mm()
Dmprotect.c105 atomic_read(&vma->vm_mm->mm_users) == 1) in change_pte_range()
Doom_kill.c893 if (atomic_read(&mm->mm_users) <= 1) in task_will_free_mem()
/linux-6.12.1/include/linux/sched/
Dmm.h133 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/
Dactive_mm.rst58 为了支持所有这些,“struct mm_struct”现在有两个计数器:一个是 “mm_users
/linux-6.12.1/arch/alpha/kernel/
Dsmp.c641 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/
Dmmu_context.h21 BUG_ON(atomic_read(&mm->mm_users) != 1); in init_new_context()
/linux-6.12.1/kernel/sched/
Dmembarrier.c343 (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/
Dtlb.c219 if (atomic_read(&current->mm->mm_users) == 0) in flush_tlb_all()
/linux-6.12.1/arch/xtensa/kernel/
Dasm-offsets.c118 DEFINE(MM_USERS, offsetof(struct mm_struct, mm_users)); in main()
/linux-6.12.1/arch/x86/kernel/
Dtboot.c100 .mm_users = ATOMIC_INIT(2),
/linux-6.12.1/kernel/
Dfork.c1260 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()
Dexit.c492 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/
Dactive_mm.rst62 "mm_users" counter that is how many "real address space users" there are,
/linux-6.12.1/arch/arc/mm/
Dtlb.c185 if (atomic_read(&mm->mm_users) == 0) in local_flush_tlb_mm()
/linux-6.12.1/include/linux/
Dmm_types.h838 atomic_t mm_users; member
/linux-6.12.1/Documentation/translations/zh_CN/process/
Dcoding-style.rst704 这种 ``多级引用计数`` 的例子可以在内存管理 (``struct mm_struct``: mm_users

12