diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-01-17 18:40:10 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-01-22 16:26:55 +0100 |
commit | 9aef9a672dc455eda697c7fef5a193e937b8e8ab (patch) | |
tree | eb647304de59ba210f2975e86764962c9d3e7f5f /src/basic/procfs-util.h | |
parent | 8793fa256506000e288bab2dd700634da9166dd1 (diff) | |
download | systemd-9aef9a672dc455eda697c7fef5a193e937b8e8ab.tar.gz |
util-lib: add new procfs-util.[ch] API for dealing with tasks limits
As it turns out the limit on concurrent tasks on Linux nasty to
determine, hence let's appropriate helpers for this.
Diffstat (limited to 'src/basic/procfs-util.h')
-rw-r--r-- | src/basic/procfs-util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/basic/procfs-util.h b/src/basic/procfs-util.h new file mode 100644 index 0000000000..7466acd7f3 --- /dev/null +++ b/src/basic/procfs-util.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +#pragma once + +#include <inttypes.h> + +int procfs_tasks_get_limit(uint64_t *ret); +int procfs_tasks_set_limit(uint64_t limit); +int procfs_tasks_get_current(uint64_t *ret); |