Home
last modified time | relevance | path

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

123

/Linux-v4.19/tools/testing/selftests/bpf/
Dbpf_rlimit.h11 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/
Dresource.h34 #ifndef RLIMIT_MEMLOCK
35 # define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */ macro
/Linux-v4.19/tools/testing/selftests/vm/
Dmlock-random-test.c32 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()
Don-fault-limit.c19 if (getrlimit(RLIMIT_MEMLOCK, &lims)) { in test_limit()
/Linux-v4.19/arch/alpha/include/uapi/asm/
Dresource.h12 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ macro
/Linux-v4.19/arch/mips/include/uapi/asm/
Dresource.h22 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ macro
/Linux-v4.19/include/asm-generic/
Dresource.h21 [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \
/Linux-v4.19/samples/bpf/
Dtracex5_user.c35 setrlimit(RLIMIT_MEMLOCK, &r); in main()
Dspintest_user.c21 setrlimit(RLIMIT_MEMLOCK, &r); in main()
Dsockex2_user.c25 setrlimit(RLIMIT_MEMLOCK, &r); in main()
Dtracex4_user.c61 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
Dsyscall_tp_user.c107 setrlimit(RLIMIT_MEMLOCK, &r); in main()
Dsockex3_user.c41 setrlimit(RLIMIT_MEMLOCK, &r); in main()
Dxdp1_user.c102 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
Doffwaketime_user.c101 setrlimit(RLIMIT_MEMLOCK, &r); in main()
Dxdp_redirect_user.c103 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
Dtracex3_user.c122 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
Dxdp_adjust_tail_user.c114 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
Dxdp_redirect_map_user.c102 if (setrlimit(RLIMIT_MEMLOCK, &r)) { in main()
Dtest_map_in_map_user.c121 assert(!setrlimit(RLIMIT_MEMLOCK, &r)); in main()
/Linux-v4.19/mm/
Dmlock.c31 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/
Duser_pages.c74 unsigned long ulimit = rlimit(RLIMIT_MEMLOCK), pinned, cache_limit, in hfi1_can_pin_pages()
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_user_pages.c62 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __qib_get_user_pages()
/Linux-v4.19/drivers/fpga/
Ddfl-afu-dma-region.c58 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/
Dreuseport_bpf.c444 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()

123