/Linux-v4.19/tools/testing/selftests/bpf/ |
D | bpf_rlimit.h | 11 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in bpf_rlimit_ctor() 19 if (setrlimit(RLIMIT_MEMLOCK, &rlim_new) < 0) { in bpf_rlimit_ctor() 26 setrlimit(RLIMIT_MEMLOCK, &rlim_new); in bpf_rlimit_ctor()
|
/Linux-v4.19/include/uapi/asm-generic/ |
D | resource.h | 34 #ifndef RLIMIT_MEMLOCK 35 # define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */ macro
|
/Linux-v4.19/tools/testing/selftests/vm/ |
D | mlock-random-test.c | 32 if (setrlimit(RLIMIT_MEMLOCK, &new)) { in set_cap_limits() 146 getrlimit(RLIMIT_MEMLOCK, &cur); in test_mlock_within_limit() 222 getrlimit(RLIMIT_MEMLOCK, &cur); in test_mlock_outof_limit()
|
D | on-fault-limit.c | 19 if (getrlimit(RLIMIT_MEMLOCK, &lims)) { in test_limit()
|
/Linux-v4.19/arch/alpha/include/uapi/asm/ |
D | resource.h | 12 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ macro
|
/Linux-v4.19/arch/mips/include/uapi/asm/ |
D | resource.h | 22 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ macro
|
/Linux-v4.19/include/asm-generic/ |
D | resource.h | 21 [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \
|
/Linux-v4.19/samples/bpf/ |
D | tracex5_user.c | 35 setrlimit(RLIMIT_MEMLOCK, &r); in main()
|
D | spintest_user.c | 21 setrlimit(RLIMIT_MEMLOCK, &r); in main()
|
D | sockex2_user.c | 25 setrlimit(RLIMIT_MEMLOCK, &r); in main()
|
D | tracex4_user.c | 61 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
|
D | syscall_tp_user.c | 107 setrlimit(RLIMIT_MEMLOCK, &r); in main()
|
D | sockex3_user.c | 41 setrlimit(RLIMIT_MEMLOCK, &r); in main()
|
D | xdp1_user.c | 102 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
|
D | offwaketime_user.c | 101 setrlimit(RLIMIT_MEMLOCK, &r); in main()
|
D | xdp_redirect_user.c | 103 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
|
D | tracex3_user.c | 122 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
|
D | xdp_adjust_tail_user.c | 114 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
|
D | xdp_redirect_map_user.c | 102 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
|
D | test_map_in_map_user.c | 121 assert(!setrlimit(RLIMIT_MEMLOCK, &r)); in main()
|
/Linux-v4.19/mm/ |
D | mlock.c | 31 if (rlimit(RLIMIT_MEMLOCK) != 0) in can_do_mlock() 683 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mlock() 806 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1() 846 lock_limit = rlimit(RLIMIT_MEMLOCK); in user_shm_lock()
|
/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | user_pages.c | 74 unsigned long ulimit = rlimit(RLIMIT_MEMLOCK), pinned, cache_limit, in hfi1_can_pin_pages()
|
/Linux-v4.19/drivers/infiniband/hw/qib/ |
D | qib_user_pages.c | 62 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __qib_get_user_pages()
|
/Linux-v4.19/drivers/fpga/ |
D | dfl-afu-dma-region.c | 58 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in afu_dma_adjust_locked_vm() 72 current->mm->locked_vm << PAGE_SHIFT, rlimit(RLIMIT_MEMLOCK), in afu_dma_adjust_locked_vm()
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | reuseport_bpf.c | 444 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_ctor() 451 setrlimit(RLIMIT_MEMLOCK, &rlim_new); in main_ctor() 457 setrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_dtor()
|