Searched refs:rlim_old (Results 1 – 3 of 3) 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()
402 struct rlimit rlim_old, rlim_new = {}; in test_sk_storage_map_stress_free() local405 getrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free()414 if (rlim_old.rlim_cur < nr_sk_threads * nr_sk_per_thread) { in test_sk_storage_map_stress_free()432 setrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free()
Completed in 11 milliseconds