/Linux-v6.6/mm/ |
D | util.c | 477 unsigned long locked_vm, limit; in __account_locked_vm() local 482 locked_vm = mm->locked_vm; in __account_locked_vm() 486 if (locked_vm + pages > limit) in __account_locked_vm() 490 mm->locked_vm = locked_vm + pages; in __account_locked_vm() 492 WARN_ON_ONCE(pages > locked_vm); in __account_locked_vm() 493 mm->locked_vm = locked_vm - pages; in __account_locked_vm() 498 locked_vm << PAGE_SHIFT, task_rlimit(task, RLIMIT_MEMLOCK), in __account_locked_vm()
|
D | debug.c | 201 mm->hiwater_rss, mm->hiwater_vm, mm->total_vm, mm->locked_vm, in dump_mm()
|
D | mmap.c | 1160 locked_pages += mm->locked_vm; in mlock_future_ok() 2027 mm->locked_vm += grow; in expand_upwards() 2120 mm->locked_vm += grow; in expand_downwards() 2460 unsigned long locked_vm = 0; in do_vmi_align_munmap() local 2508 locked_vm += vma_pages(next); in do_vmi_align_munmap() 2560 mm->locked_vm -= locked_vm; in do_vmi_align_munmap() 2873 mm->locked_vm += (len >> PAGE_SHIFT); in mmap_region() 3139 mm->locked_vm += (len >> PAGE_SHIFT); in do_brk_flags()
|
D | mlock.c | 458 mm->locked_vm += nr_pages; in mlock_fixup() 596 locked += current->mm->locked_vm; in do_mlock()
|
D | mremap.c | 726 mm->locked_vm += new_len >> PAGE_SHIFT; in move_vma() 1068 mm->locked_vm += pages; in SYSCALL_DEFINE5()
|
/Linux-v6.6/net/xdp/ |
D | xdp_umem.c | 35 atomic_long_sub(umem->npgs, &umem->user->locked_vm); in xdp_umem_unaccount_pages() 139 old_npgs = atomic_long_read(&umem->user->locked_vm); in xdp_umem_account_pages() 146 } while (atomic_long_cmpxchg(&umem->user->locked_vm, old_npgs, in xdp_umem_account_pages()
|
/Linux-v6.6/include/linux/sched/ |
D | user.h | 29 atomic_long_t locked_vm; member
|
/Linux-v6.6/arch/s390/kvm/ |
D | pci.c | 199 atomic_long_sub(nr_pages, &user->locked_vm); in unaccount_mem() 212 cur_pages = atomic_long_read(&user->locked_vm); in account_mem() 216 } while (atomic_long_cmpxchg(&user->locked_vm, cur_pages, in account_mem()
|
/Linux-v6.6/io_uring/ |
D | rsrc.h | 164 atomic_long_sub(nr_pages, &user->locked_vm); in __io_unaccount_mem()
|
D | rsrc.c | 52 cur_pages = atomic_long_read(&user->locked_vm); in __io_account_mem() 57 } while (!atomic_long_try_cmpxchg(&user->locked_vm, in __io_account_mem()
|
/Linux-v6.6/drivers/iommu/iommufd/ |
D | pages.c | 813 cur_pages = atomic_long_read(&pages->source_user->locked_vm); in incr_user_locked_vm() 817 } while (atomic_long_cmpxchg(&pages->source_user->locked_vm, cur_pages, in incr_user_locked_vm() 824 if (WARN_ON(atomic_long_read(&pages->source_user->locked_vm) < npages)) in decr_user_locked_vm() 826 atomic_long_sub(npages, &pages->source_user->locked_vm); in decr_user_locked_vm()
|
/Linux-v6.6/include/linux/ |
D | mm_types.h | 793 unsigned long locked_vm; /* Pages that have PG_mlocked set */ member
|
/Linux-v6.6/drivers/vfio/ |
D | vfio_iommu_type1.c | 101 size_t locked_vm; member 439 dma->locked_vm += npage; in vfio_lock_acct() 675 mm->locked_vm + lock_acct + 1 > limit) { in vfio_pin_pages_remote() 1529 long npage = dma->locked_vm; in vfio_change_dma_owner()
|
/Linux-v6.6/drivers/infiniband/sw/siw/ |
D | siw_verbs.c | 1346 if (num_pages > mem_limit - current->mm->locked_vm) { in siw_reg_user_mr() 1349 current->mm->locked_vm); in siw_reg_user_mr()
|
/Linux-v6.6/net/core/ |
D | skbuff.c | 1513 old_pg = atomic_long_read(&user->locked_vm); in mm_account_pinned_pages() 1518 } while (!atomic_long_try_cmpxchg(&user->locked_vm, &old_pg, new_pg)); in mm_account_pinned_pages() 1534 atomic_long_sub(mmp->num_pg, &mmp->user->locked_vm); in mm_unaccount_pinned_pages()
|
/Linux-v6.6/fs/proc/ |
D | task_mmu.c | 62 SEQ_PUT_DEC(" kB\nVmLck:\t", mm->locked_vm); in task_mem()
|
/Linux-v6.6/Documentation/driver-api/ |
D | vfio.rst | 636 mm::locked_vm counter to make sure we do not exceed the rlimit.
|
/Linux-v6.6/Documentation/mm/ |
D | unevictable-lru.rst | 363 VMAs against the task's "locked_vm".
|
/Linux-v6.6/kernel/ |
D | fork.c | 1272 mm->locked_vm = 0; in mm_init()
|
/Linux-v6.6/kernel/events/ |
D | core.c | 6300 atomic_long_sub(rb->aux_nr_pages - rb->aux_mmap_locked, &mmap_user->locked_vm); in perf_mmap_close() 6375 &mmap_user->locked_vm); in perf_mmap_close() 6521 user_locked = atomic_long_read(&user->locked_vm); in perf_mmap() 6583 atomic_long_add(user_extra, &user->locked_vm); in perf_mmap()
|