Home
last modified time | relevance | path

Searched refs:lock_limit (Results 1 – 10 of 10) sorted by relevance

/linux/mm/
A Dmlock.c651 unsigned long lock_limit; in do_mlock() local
662 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mlock()
663 lock_limit >>= PAGE_SHIFT; in do_mlock()
682 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in do_mlock()
778 unsigned long lock_limit; in SYSCALL_DEFINE1() local
788 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1()
789 lock_limit >>= PAGE_SHIFT; in SYSCALL_DEFINE1()
824 unsigned long lock_limit, locked; in user_shm_lock() local
829 lock_limit = rlimit(RLIMIT_MEMLOCK); in user_shm_lock()
830 if (lock_limit == RLIM_INFINITY) in user_shm_lock()
[all …]
A Dmremap.c767 unsigned long locked, lock_limit; in vma_to_resize() local
769 lock_limit = rlimit(RLIMIT_MEMLOCK); in vma_to_resize()
771 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
A Dmmap.c1355 unsigned long locked, lock_limit; in mlock_future_check() local
1361 lock_limit = rlimit(RLIMIT_MEMLOCK); in mlock_future_check()
1362 lock_limit >>= PAGE_SHIFT; in mlock_future_check()
1363 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in mlock_future_check()
/linux/drivers/infiniband/hw/qib/
A Dqib_user_pages.c97 unsigned long locked, lock_limit; in qib_get_user_pages() local
101 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in qib_get_user_pages()
104 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in qib_get_user_pages()
/linux/drivers/infiniband/core/
A Dumem.c152 unsigned long lock_limit; in ib_umem_get() local
202 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get()
205 if (new_pinned > lock_limit && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
/linux/net/xdp/
A Dxdp_umem.c132 unsigned long lock_limit, new_npgs, old_npgs; in xdp_umem_account_pages() local
137 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in xdp_umem_account_pages()
143 if (new_npgs > lock_limit) { in xdp_umem_account_pages()
/linux/drivers/infiniband/hw/usnic/
A Dusnic_uiom.c93 unsigned long lock_limit; in usnic_uiom_get_pages() local
129 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in usnic_uiom_get_pages()
131 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in usnic_uiom_get_pages()
/linux/drivers/vhost/
A Dvdpa.c693 unsigned long lock_limit, sz2pin, nchunks, i; in vhost_vdpa_pa_map() local
714 lock_limit = PFN_DOWN(rlimit(RLIMIT_MEMLOCK)); in vhost_vdpa_pa_map()
715 if (npages + atomic64_read(&dev->mm->pinned_vm) > lock_limit) { in vhost_vdpa_pa_map()
/linux/arch/x86/kvm/svm/
A Dsev.c388 unsigned long locked, lock_limit; in sev_pin_memory() local
404 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in sev_pin_memory()
405 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in sev_pin_memory()
406 pr_err("SEV: %lu locked pages exceed the lock limit of %lu.\n", locked, lock_limit); in sev_pin_memory()
/linux/kernel/events/
A Dcore.c6176 unsigned long locked, lock_limit; in perf_mmap() local
6320 lock_limit = rlimit(RLIMIT_MEMLOCK); in perf_mmap()
6321 lock_limit >>= PAGE_SHIFT; in perf_mmap()
6324 if ((locked > lock_limit) && perf_is_paranoid() && in perf_mmap()

Completed in 51 milliseconds