Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/cgroup/
H A Dtest_pids.c32 char *cg_pids; in test_pids_max() local
35 cg_pids = cg_name(root, "pids_test"); in test_pids_max()
36 if (!cg_pids) in test_pids_max()
39 if (cg_create(cg_pids)) in test_pids_max()
42 if (cg_read_strcmp(cg_pids, "pids.max", "max\n")) in test_pids_max()
45 if (cg_write(cg_pids, "pids.max", "2")) in test_pids_max()
48 if (cg_enter_current(cg_pids)) in test_pids_max()
51 pid = cg_run_nowait(cg_pids, run_pause, NULL); in test_pids_max()
55 if (cg_run_nowait(cg_pids, run_success, NULL) != -1 || errno != EAGAIN) in test_pids_max()
65 cg_destroy(cg_pids); in test_pids_max()
[all …]