Searched refs:max_pids (Results 1 – 2 of 2) sorted by relevance
/third_party/ltp/lib/ |
D | tst_pid.c | 72 int max_pids, ret; in read_session_pids_limit() local 87 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &max_pids); in read_session_pids_limit() 88 tst_resm(TINFO, "Found limit of processes %d (from %s=max)", max_pids, path); in read_session_pids_limit() 90 max_pids = SAFE_STRTOL(max_pid_value, 0, INT_MAX); in read_session_pids_limit() 91 tst_resm(TINFO, "Found limit of processes %d (from %s)", max_pids, path); in read_session_pids_limit() 94 return max_pids; in read_session_pids_limit() 99 int max_pids, uid; in get_session_pids_limit() local 102 max_pids = read_session_pids_limit(CGROUPS_V2_SLICE_FMT, uid, cleanup_fn); in get_session_pids_limit() 103 if (max_pids < 0) in get_session_pids_limit() 104 max_pids = read_session_pids_limit(CGROUPS_V1_SLICE_FMT, uid, in get_session_pids_limit() [all …]
|
/third_party/ltp/testcases/kernel/mem/mtest01/ |
D | mtest01.c | 48 static int max_pids; variable 117 max_pids = total_free * sstats.mem_unit in setup() 119 pid_list = SAFE_MALLOC(max_pids * sizeof(pid_t)); in setup() 194 } while (pid_cntr < max_pids); in mem_test()
|