Home
last modified time | relevance | path

Searched refs:pinned_vm (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/drivers/infiniband/hw/hfi1/
Duser_pages.c47 if (atomic64_read(&mm->pinned_vm) + npages > ulimit_pages) in hfi1_can_pin_pages()
90 atomic64_add(ret, &mm->pinned_vm); in hfi1_acquire_user_pages()
101 atomic64_sub(npages, &mm->pinned_vm); in hfi1_release_user_pages()
/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_user_pages.c102 locked = atomic64_add_return(num_pages, &current->mm->pinned_vm); in qib_get_user_pages()
126 atomic64_sub(num_pages, &current->mm->pinned_vm); in qib_get_user_pages()
136 atomic64_sub(num_pages, &current->mm->pinned_vm); in qib_release_user_pages()
/linux-6.6.21/drivers/infiniband/core/
Dumem.c199 new_pinned = atomic64_add_return(npages, &mm->pinned_vm); in ib_umem_get()
201 atomic64_sub(npages, &mm->pinned_vm); in ib_umem_get()
246 atomic64_sub(ib_umem_num_pages(umem), &mm->pinned_vm); in ib_umem_get()
273 atomic64_sub(ib_umem_num_pages(umem), &umem->owning_mm->pinned_vm); in ib_umem_release()
/linux-6.6.21/Documentation/translations/zh_CN/infiniband/
Duser_verbs.rst55 算进程的pinned_vm中被固定的内存量,并检查非特权进程是否超过其RLIMIT_MEMLOCK限制。
57 被多次固定的页面在每次被固定时都会被计数,所以pinned_vm的值可能会高估一个进程所
/linux-6.6.21/drivers/infiniband/sw/siw/
Dsiw_mem.c82 atomic64_sub(umem->num_pages, &mm_s->pinned_vm); in siw_umem_release()
401 if (atomic64_add_return(num_pages, &mm_s->pinned_vm) > mlock_limit) { in siw_umem_get()
444 atomic64_sub(num_pages, &mm_s->pinned_vm); in siw_umem_get()
/linux-6.6.21/Documentation/infiniband/
Duser_verbs.rst54 amount of memory pinned in the process's pinned_vm, and checks that
58 pinned, so the value of pinned_vm may be an overestimate of the
/linux-6.6.21/drivers/infiniband/hw/usnic/
Dusnic_uiom.c126 locked = atomic64_add_return(npages, &current->mm->pinned_vm); in usnic_uiom_get_pages()
181 atomic64_sub(npages, &current->mm->pinned_vm); in usnic_uiom_get_pages()
433 atomic64_sub(usnic_uiom_num_pages(uiomr), &uiomr->owning_mm->pinned_vm); in usnic_uiom_reg_release()
/linux-6.6.21/mm/
Ddebug.c202 (u64)atomic64_read(&mm->pinned_vm), in dump_mm()
/linux-6.6.21/arch/s390/kvm/
Dpci.c201 atomic64_sub(nr_pages, &current->mm->pinned_vm); in unaccount_mem()
219 atomic64_add(nr_pages, &current->mm->pinned_vm); in account_mem()
/linux-6.6.21/drivers/vhost/
Dvdpa.c825 atomic64_sub(PFN_DOWN(map->size), &dev->mm->pinned_vm); in vhost_vdpa_pa_unmap()
909 atomic64_add(PFN_DOWN(size), &dev->mm->pinned_vm); in vhost_vdpa_map()
1013 if (npages + atomic64_read(&dev->mm->pinned_vm) > lock_limit) { in vhost_vdpa_pa_map()
/linux-6.6.21/include/linux/
Dmm_types.h794 atomic64_t pinned_vm; /* Refcount permanently increased */ member
/linux-6.6.21/io_uring/
Drsrc.c68 atomic64_sub(nr_pages, &ctx->mm_account->pinned_vm); in io_unaccount_mem()
82 atomic64_add(nr_pages, &ctx->mm_account->pinned_vm); in io_account_mem()
/linux-6.6.21/drivers/vdpa/vdpa_user/
Dvduse_dev.c1014 atomic64_sub(dev->umem->npages, &dev->umem->mm->pinned_vm); in vduse_dev_dereg_umem()
1055 if (npages + atomic64_read(&current->mm->pinned_vm) > lock_limit) in vduse_dev_reg_umem()
1070 atomic64_add(npages, &current->mm->pinned_vm); in vduse_dev_reg_umem()
/linux-6.6.21/drivers/iommu/iommufd/
Dpages.c880 atomic64_add(npages, &pages->source_mm->pinned_vm); in do_update_pinned()
882 atomic64_sub(npages, &pages->source_mm->pinned_vm); in do_update_pinned()
/linux-6.6.21/fs/proc/
Dtask_mmu.c63 SEQ_PUT_DEC(" kB\nVmPin:\t", atomic64_read(&mm->pinned_vm)); in task_mem()
/linux-6.6.21/kernel/
Dfork.c1273 atomic64_set(&mm->pinned_vm, 0); in mm_init()
/linux-6.6.21/kernel/events/
Dcore.c6336 atomic64_sub(rb->aux_mmap_locked, &vma->vm_mm->pinned_vm); in perf_mmap_close()
6411 atomic64_sub(mmap_locked, &vma->vm_mm->pinned_vm); in perf_mmap_close()
6577 locked = atomic64_read(&vma->vm_mm->pinned_vm) + extra; in perf_mmap()
6619 atomic64_add(extra, &vma->vm_mm->pinned_vm); in perf_mmap()