summaryrefslogtreecommitdiff
path: root/src/cgroup-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgroup-util.h')
-rw-r--r--src/cgroup-util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cgroup-util.h b/src/cgroup-util.h
index 4ada71bc17..716c635a95 100644
--- a/src/cgroup-util.h
+++ b/src/cgroup-util.h
@@ -23,9 +23,19 @@
***/
#include <sys/types.h>
+#include <stdio.h>
+
+#include "set.h"
+
+#define SYSTEMD_CGROUP_CONTROLLER "name=systemd"
int cg_translate_error(int error, int _errno);
+int cg_enumerate_processes(const char *controller, const char *path, FILE **_f);
+int cg_enumerate_tasks(const char *controller, const char *path, FILE **_f);
+
+int cg_read_pid(FILE *f, pid_t *_pid);
+
int cg_kill(const char *controller, const char *path, int sig, bool ignore_self);
int cg_kill_recursive(const char *controller, const char *path, int sig, bool ignore_self);
int cg_kill_recursive_and_wait(const char *controller, const char *path);
@@ -51,4 +61,6 @@ int cg_install_release_agent(const char *controller, const char *agent);
int cg_is_empty(const char *controller, const char *path, bool ignore_self);
int cg_is_empty_recursive(const char *controller, const char *path, bool ignore_self);
+int cg_init(void);
+
#endif