Searched refs:memlock_r (Results 1 – 1 of 1) sorted by relevance
12 struct rlimit memlock_r; in rlimit_bump_memlock() local14 SAFE_GETRLIMIT(RLIMIT_MEMLOCK, &memlock_r); in rlimit_bump_memlock()15 memlock_r.rlim_cur += BPF_MEMLOCK_ADD; in rlimit_bump_memlock()17 (long)memlock_r.rlim_cur); in rlimit_bump_memlock()19 if (memlock_r.rlim_cur <= memlock_r.rlim_max) { in rlimit_bump_memlock()20 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &memlock_r); in rlimit_bump_memlock()22 memlock_r.rlim_max += BPF_MEMLOCK_ADD; in rlimit_bump_memlock()23 SAFE_SETRLIMIT(RLIMIT_MEMLOCK, &memlock_r); in rlimit_bump_memlock()