Systemd/src/libsystemd
Michal Sekletár d9e45bc3ab core: introduce support for cgroup freezer
With cgroup v2 the cgroup freezer is implemented as a cgroup
attribute called cgroup.freeze. cgroup can be frozen by writing "1"
to the file and kernel will send us a notification through
"cgroup.events" after the operation is finished and processes in the
cgroup entered quiescent state, i.e. they are not scheduled to
run. Writing "0" to the attribute file does the inverse and process
execution is resumed.

This commit exposes above low-level functionality through systemd's DBus
API. Each unit type must provide specialized implementation for these
methods, otherwise, we return an error. So far only service, scope, and
slice unit types provide the support. It is possible to check if a
given unit has the support using CanFreeze() DBus property.

Note that DBus API has a synchronous behavior and we dispatch the reply
to freeze/thaw requests only after the kernel has notified us that
requested operation was completed.
2020-04-30 19:02:51 +02:00
..
sd-bus core: introduce support for cgroup freezer 2020-04-30 19:02:51 +02:00
sd-daemon tree-wide: use the return value from sockaddr_un_set_path() 2020-03-02 15:55:44 +01:00
sd-device tree-wide: make parse_ifindex simply return the index 2020-01-11 12:06:08 +01:00
sd-event sd-event: use _cleanup_ in one more place 2020-01-08 17:15:54 +01:00
sd-hwdb hwdb: optimize isatty()-per-line away 2020-04-13 11:27:35 +02:00
sd-id128 id128: move make_v4_uuid into id128-util.h to make it generally useful 2020-01-20 17:42:03 +01:00
sd-login sd-login: get rid of seat_can_multi_session() 2020-04-17 16:15:30 +02:00
sd-netlink tree-wide: use cmsg_find() helper at various places where appropriate 2020-04-23 19:41:15 +02:00
sd-network sd-network: Add support to retrive LPR servers 2020-04-22 14:49:52 +02:00
sd-path sd-path: export "systemd-network-path" 2020-03-27 20:12:45 +01:00
sd-resolve tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
sd-utf8 tree-wide: drop empty comments 2018-06-29 11:00:30 +09:00
disable-mempool.c mempool: only enable mempool use when linked to libsystemd-shared.so 2018-10-11 11:10:37 +02:00
libsystemd.pc.in meson: define PROJECT_VERSION as the "bare" project version 2018-12-20 21:35:29 +01:00
libsystemd.sym sd-bus: add va_list variants of variadic convenience functions 2020-04-02 10:26:18 +02:00
meson.build sd-netlink: save dynamic general netlink message type 2019-10-15 01:57:19 +09:00