mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
core/cgroup: make unit_has_host_root_cgroup take const Unit*
(cherry picked from commit 4442aef08e0fe8ba381b580455f7eb281c5a28a1)
This commit is contained in:
parent
15732ee31f
commit
06c2ee3979
@ -102,8 +102,9 @@ bool unit_has_startup_cgroup_constraints(Unit *u) {
|
||||
c->startup_memory_low_set;
|
||||
}
|
||||
|
||||
bool unit_has_host_root_cgroup(Unit *u) {
|
||||
bool unit_has_host_root_cgroup(const Unit *u) {
|
||||
assert(u);
|
||||
assert(u->manager);
|
||||
|
||||
/* Returns whether this unit manages the root cgroup. This will return true if this unit is the root slice and
|
||||
* the manager manages the root cgroup. */
|
||||
|
@ -495,7 +495,7 @@ int unit_reset_accounting(Unit *u);
|
||||
})
|
||||
|
||||
bool manager_owns_host_root_cgroup(Manager *m);
|
||||
bool unit_has_host_root_cgroup(Unit *u);
|
||||
bool unit_has_host_root_cgroup(const Unit *u);
|
||||
|
||||
bool unit_has_startup_cgroup_constraints(Unit *u);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user