/linux-6.6.21/tools/perf/util/ |
D | rlimit.c | 17 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()
|
D | bpf_counter.h | 90 setrlimit(RLIMIT_MEMLOCK, &rinf); in set_max_rlimit()
|
/linux-6.6.21/include/uapi/asm-generic/ |
D | resource.h | 34 #ifndef RLIMIT_MEMLOCK 35 # define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */ macro
|
/linux-6.6.21/tools/testing/selftests/mm/ |
D | mlock-random-test.c | 33 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()
|
D | on-fault-limit.c | 15 if (getrlimit(RLIMIT_MEMLOCK, &lims)) { in test_limit()
|
D | memfd_secret.c | 218 if (setrlimit(RLIMIT_MEMLOCK, &new)) { in set_cap_limits() 241 if (getrlimit(RLIMIT_MEMLOCK, &rlim)) in prepare()
|
D | compaction_test.c | 180 if (setrlimit(RLIMIT_MEMLOCK, &lim)) { in main()
|
/linux-6.6.21/arch/alpha/include/uapi/asm/ |
D | resource.h | 12 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ macro
|
/linux-6.6.21/arch/mips/include/uapi/asm/ |
D | resource.h | 22 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ macro
|
/linux-6.6.21/include/asm-generic/ |
D | resource.h | 21 [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | user_pages.c | 41 DIV_ROUND_DOWN_ULL(rlimit(RLIMIT_MEMLOCK), PAGE_SIZE); in hfi1_can_pin_pages()
|
/linux-6.6.21/Documentation/translations/zh_CN/infiniband/ |
D | user_verbs.rst | 55 算进程的pinned_vm中被固定的内存量,并检查非特权进程是否超过其RLIMIT_MEMLOCK限制。
|
/linux-6.6.21/mm/ |
D | mlock.c | 42 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()
|
D | util.c | 495 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/ |
D | qib_user_pages.c | 101 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in qib_get_user_pages()
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | common.c | 115 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/ |
D | reuseport_bpf.c | 442 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/ |
D | xdp_umem.c | 135 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in xdp_umem_account_pages()
|
/linux-6.6.21/drivers/infiniband/core/ |
D | umem.c | 197 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get()
|
/linux-6.6.21/Documentation/infiniband/ |
D | user_verbs.rst | 55 unprivileged processes do not exceed their RLIMIT_MEMLOCK limit.
|
/linux-6.6.21/Documentation/admin-guide/ |
D | perf-security.rst | 287 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/ |
D | siw_mem.c | 399 mlock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in siw_umem_get()
|
/linux-6.6.21/drivers/infiniband/hw/usnic/ |
D | usnic_uiom.c | 127 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in usnic_uiom_get_pages()
|
/linux-6.6.21/arch/s390/kvm/ |
D | pci.c | 209 page_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in account_mem()
|
/linux-6.6.21/drivers/vfio/ |
D | vfio_iommu_type1.c | 770 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()
|