Searched refs:lock_limit (Results 1 – 10 of 10) sorted by relevance
/linux-6.12.1/mm/ |
D | mlock.c | 615 unsigned long lock_limit; in do_mlock() local 626 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mlock() 627 lock_limit >>= PAGE_SHIFT; in do_mlock() 634 if ((locked > lock_limit) && (!capable(CAP_IPC_LOCK))) { in do_mlock() 646 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in do_mlock() 747 unsigned long lock_limit; in SYSCALL_DEFINE1() local 757 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1() 758 lock_limit >>= PAGE_SHIFT; in SYSCALL_DEFINE1() 764 if (!(flags & MCL_CURRENT) || (current->mm->total_vm <= lock_limit) || in SYSCALL_DEFINE1() 793 unsigned long lock_limit, locked; in user_shm_lock() local [all …]
|
/linux-6.12.1/drivers/infiniband/hw/qib/ |
D | qib_user_pages.c | 97 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-6.12.1/net/xdp/ |
D | xdp_umem.c | 130 unsigned long lock_limit, new_npgs, old_npgs; in xdp_umem_account_pages() local 135 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in xdp_umem_account_pages() 141 if (new_npgs > lock_limit) { in xdp_umem_account_pages()
|
/linux-6.12.1/drivers/infiniband/core/ |
D | umem.c | 147 unsigned long lock_limit; in ib_umem_get() local 197 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get() 200 if (new_pinned > lock_limit && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
|
/linux-6.12.1/drivers/infiniband/hw/usnic/ |
D | usnic_uiom.c | 93 unsigned long lock_limit; in usnic_uiom_get_pages() local 127 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in usnic_uiom_get_pages() 129 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in usnic_uiom_get_pages()
|
/linux-6.12.1/drivers/iommu/iommufd/ |
D | pages.c | 806 unsigned long lock_limit; in incr_user_locked_vm() local 810 lock_limit = task_rlimit(pages->source_task, RLIMIT_MEMLOCK) >> in incr_user_locked_vm() 816 if (new_pages > lock_limit) in incr_user_locked_vm()
|
/linux-6.12.1/drivers/vhost/ |
D | vdpa.c | 1104 unsigned long lock_limit, sz2pin, nchunks, i; in vhost_vdpa_pa_map() local 1125 lock_limit = PFN_DOWN(rlimit(RLIMIT_MEMLOCK)); in vhost_vdpa_pa_map() 1126 if (npages + atomic64_read(&dev->mm->pinned_vm) > lock_limit) { in vhost_vdpa_pa_map()
|
/linux-6.12.1/drivers/vdpa/vdpa_user/ |
D | vduse_dev.c | 1067 unsigned long npages, lock_limit; in vduse_dev_reg_umem() local 1090 lock_limit = PFN_DOWN(rlimit(RLIMIT_MEMLOCK)); in vduse_dev_reg_umem() 1091 if (npages + atomic64_read(¤t->mm->pinned_vm) > lock_limit) in vduse_dev_reg_umem()
|
/linux-6.12.1/arch/x86/kvm/svm/ |
D | sev.c | 635 unsigned long locked, lock_limit; in sev_pin_memory() local 651 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in sev_pin_memory() 652 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in sev_pin_memory() 653 pr_err("SEV: %lu locked pages exceed the lock limit of %lu.\n", locked, lock_limit); in sev_pin_memory()
|
/linux-6.12.1/kernel/events/ |
D | core.c | 6590 unsigned long locked, lock_limit; in perf_mmap() local 6739 lock_limit = rlimit(RLIMIT_MEMLOCK); in perf_mmap() 6740 lock_limit >>= PAGE_SHIFT; in perf_mmap() 6743 if ((locked > lock_limit) && perf_is_paranoid() && in perf_mmap()
|