Home
last modified time | relevance | path

Searched refs:rlim_old (Results 1 – 2 of 2) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/
Dbpf_rlimit.h6 struct rlimit rlim_old, rlim_new = { in bpf_rlimit_ctor() local
11 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in bpf_rlimit_ctor()
24 rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); in bpf_rlimit_ctor()
25 rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); in bpf_rlimit_ctor()
/external/linux-kselftest/tools/testing/selftests/net/
Dreuseport_bpf.c440 static struct rlimit rlim_old; variable
444 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_ctor()
446 if (rlim_old.rlim_cur != RLIM_INFINITY) { in main_ctor()
449 rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); in main_ctor()
450 rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); in main_ctor()
457 setrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_dtor()