Home
last modified time | relevance | path

Searched refs:RLIMIT_MEMLOCK (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.6.21/tools/perf/util/
Drlimit.c17 if (getrlimit(RLIMIT_MEMLOCK, &rlim) == 0) { in rlimit__bump_memlock()
21 if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0) { in rlimit__bump_memlock()
25 if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0) in rlimit__bump_memlock()
Dbpf_counter.h90 setrlimit(RLIMIT_MEMLOCK, &rinf); in set_max_rlimit()
/linux-6.6.21/include/uapi/asm-generic/
Dresource.h34 #ifndef RLIMIT_MEMLOCK
35 # define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */ macro
/linux-6.6.21/tools/testing/selftests/mm/
Dmlock-random-test.c33 if (setrlimit(RLIMIT_MEMLOCK, &new)) { in set_cap_limits()
147 getrlimit(RLIMIT_MEMLOCK, &cur); in test_mlock_within_limit()
223 getrlimit(RLIMIT_MEMLOCK, &cur); in test_mlock_outof_limit()
Don-fault-limit.c15 if (getrlimit(RLIMIT_MEMLOCK, &lims)) { in test_limit()
Dmemfd_secret.c218 if (setrlimit(RLIMIT_MEMLOCK, &new)) { in set_cap_limits()
241 if (getrlimit(RLIMIT_MEMLOCK, &rlim)) in prepare()
Dcompaction_test.c180 if (setrlimit(RLIMIT_MEMLOCK, &lim)) { in main()
/linux-6.6.21/arch/alpha/include/uapi/asm/
Dresource.h12 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ macro
/linux-6.6.21/arch/mips/include/uapi/asm/
Dresource.h22 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ macro
/linux-6.6.21/include/asm-generic/
Dresource.h21 [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Duser_pages.c41 DIV_ROUND_DOWN_ULL(rlimit(RLIMIT_MEMLOCK), PAGE_SIZE); in hfi1_can_pin_pages()
/linux-6.6.21/Documentation/translations/zh_CN/infiniband/
Duser_verbs.rst55 算进程的pinned_vm中被固定的内存量,并检查非特权进程是否超过其RLIMIT_MEMLOCK限制。
/linux-6.6.21/mm/
Dmlock.c42 if (rlimit(RLIMIT_MEMLOCK) != 0) in can_do_mlock()
589 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mlock()
717 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1()
758 lock_limit = rlimit(RLIMIT_MEMLOCK); in user_shm_lock()
Dutil.c495 limit = task_rlimit(task, RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __account_locked_vm()
508 locked_vm << PAGE_SHIFT, task_rlimit(task, RLIMIT_MEMLOCK), in __account_locked_vm()
/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_user_pages.c101 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in qib_get_user_pages()
/linux-6.6.21/tools/bpf/bpftool/
Dcommon.c115 if (getrlimit(RLIMIT_MEMLOCK, &rlim_init)) in known_to_need_rlimit()
123 if (setrlimit(RLIMIT_MEMLOCK, &rlim_cur_zero)) in known_to_need_rlimit()
133 setrlimit(RLIMIT_MEMLOCK, &rlim_init); in known_to_need_rlimit()
147 setrlimit(RLIMIT_MEMLOCK, &rinf); in set_max_rlimit()
/linux-6.6.21/tools/testing/selftests/net/
Dreuseport_bpf.c442 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_ctor()
449 setrlimit(RLIMIT_MEMLOCK, &rlim_new); in main_ctor()
455 setrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_dtor()
/linux-6.6.21/net/xdp/
Dxdp_umem.c135 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in xdp_umem_account_pages()
/linux-6.6.21/drivers/infiniband/core/
Dumem.c197 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get()
/linux-6.6.21/Documentation/infiniband/
Duser_verbs.rst55 unprivileged processes do not exceed their RLIMIT_MEMLOCK limit.
/linux-6.6.21/Documentation/admin-guide/
Dperf-security.rst287 RLIMIT_MEMLOCK [11]_ limit, but only for memory regions mapped
292 4128 KiB of memory above the RLIMIT_MEMLOCK limit (ulimit -l) for
301 RLIMIT_MEMLOCK and perf_event_mlock_kb resource constraints are ignored
/linux-6.6.21/drivers/infiniband/sw/siw/
Dsiw_mem.c399 mlock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in siw_umem_get()
/linux-6.6.21/drivers/infiniband/hw/usnic/
Dusnic_uiom.c127 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in usnic_uiom_get_pages()
/linux-6.6.21/arch/s390/kvm/
Dpci.c209 page_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in account_mem()
/linux-6.6.21/drivers/vfio/
Dvfio_iommu_type1.c770 task_rlimit(dma->task, RLIMIT_MEMLOCK)); in vfio_pin_page_external()
1465 unsigned long pfn, limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in vfio_pin_map_dma()
1683 unsigned long limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in vfio_iommu_replay()

12