diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-12-12 11:02:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-04-06 16:08:23 +0200 |
commit | b2dcfd8e11977d4369560b8b4de81b947b0e963e (patch) | |
tree | ff77c6f8d1c411d5c4b46a39db29ea2e35ecbec8 /src/shared/cgroup-setup.h | |
parent | cgroup-util: add helpers for opening cgroup by id (diff) | |
download | systemd-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.h | 1 |
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); |