Searched refs:rlim_old (Results 1 – 2 of 2) sorted by relevance
6 struct rlimit rlim_old, rlim_new = { in bpf_rlimit_ctor() local11 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()
440 static struct rlimit rlim_old; variable444 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()