Home
last modified time | relevance | path

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

/systemd-251/src/test/
Dtest-procfs-util.c14 uint64_t v, pid_max, threads_max, limit; in main() local
36 threads_max = TASKS_MAX; in main()
37 r = procfs_get_threads_max(&threads_max); in main()
41 log_info("kernel.threads-max: %"PRIu64, threads_max); in main()
43 limit = MIN(pid_max - (pid_max > 0), threads_max); in main()
/systemd-251/src/basic/
Dprocfs-util.c74 uint64_t threads_max; in procfs_tasks_set_limit() local
79 if (procfs_get_threads_max(&threads_max) < 0) in procfs_tasks_set_limit()
82 if (MIN(pid_max - 1, threads_max) != limit) in procfs_tasks_set_limit()