summaryrefslogtreecommitdiffstats
path: root/src/cgroup-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-11 00:50:49 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-11 00:50:49 +0200
commitc6c18be35bb1d300d0b62a568783cc1c477f7151 (patch)
treee4bad2452f20b6d1d6df9714d6abe72cdc56599c /src/cgroup-util.h
parentcgroup: make cgroup controller name a constant (diff)
downloadsystemd-c6c18be35bb1d300d0b62a568783cc1c477f7151.tar.xz
systemd-c6c18be35bb1d300d0b62a568783cc1c477f7151.zip
cgroup: kill processes, not tasks and other cgroup changes
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