summaryrefslogtreecommitdiffstats
path: root/src/shared/cgroup-setup.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-12-12 11:02:59 +0100
committerLennart Poettering <lennart@poettering.net>2024-04-06 16:08:23 +0200
commitb2dcfd8e11977d4369560b8b4de81b947b0e963e (patch)
treeff77c6f8d1c411d5c4b46a39db29ea2e35ecbec8 /src/shared/cgroup-setup.h
parentcgroup-util: add helpers for opening cgroup by id (diff)
downloadsystemd-b2dcfd8e11977d4369560b8b4de81b947b0e963e.tar.xz
systemd-b2dcfd8e11977d4369560b8b4de81b947b0e963e.zip
cgroup-setup: add fd-based version of cg_attach()
Diffstat (limited to '')
-rw-r--r--src/shared/cgroup-setup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/cgroup-setup.h b/src/shared/cgroup-setup.h
index c35884ee4d..283ab6757c 100644
--- a/src/shared/cgroup-setup.h
+++ b/src/shared/cgroup-setup.h
@@ -21,6 +21,7 @@ int cg_trim(const char *controller, const char *path, bool delete_root);
int cg_create(const char *controller, const char *path);
int cg_attach(const char *controller, const char *path, pid_t pid);
+int cg_fd_attach(int fd, pid_t pid);
int cg_attach_fallback(const char *controller, const char *path, pid_t pid);
int cg_create_and_attach(const char *controller, const char *path, pid_t pid);