1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
7 #include "cgroup-util.h"
9 int chown_cgroup(pid_t pid
, CGroupUnified unified_requested
, uid_t uid_shift
);
10 int sync_cgroup(pid_t pid
, CGroupUnified unified_requested
, uid_t uid_shift
);
11 int create_subcgroup(pid_t pid
, bool keep_unit
, CGroupUnified unified_requested
);
13 int mount_cgroups(const char *dest
, CGroupUnified unified_requested
, bool userns
, uid_t uid_shift
, uid_t uid_range
, const char *selinux_apifs_context
, bool use_cgns
);
14 int mount_systemd_cgroup_writable(const char *dest
, CGroupUnified unified_requested
);