Lines Matching defs:mask
298 void cgroup_context_apply(CGroupContext *c, CGroupMask mask, const char *path, ManagerState state) {
305 if (mask == 0)
319 if ((mask & CGROUP_MASK_CPU) && !is_root) {
346 if (mask & CGROUP_MASK_BLKIO) {
396 if ((mask & CGROUP_MASK_MEMORY) && !is_root) {
419 if ((mask & CGROUP_MASK_DEVICES) && !is_root) {
482 if ((mask & CGROUP_MASK_PIDS) && !is_root) {
499 CGroupMask mask = 0;
507 mask |= CGROUP_MASK_CPUACCT | CGROUP_MASK_CPU;
514 mask |= CGROUP_MASK_BLKIO;
518 mask |= CGROUP_MASK_MEMORY;
522 mask |= CGROUP_MASK_DEVICES;
526 mask |= CGROUP_MASK_PIDS;
528 return mask;
534 /* Returns the mask of controllers the unit needs for itself */
564 /* Returns the mask of controllers all of the unit's children
597 /* Returns the mask of controllers all of the unit's siblings
598 * require, i.e. the members mask of the unit's parent slice
609 /* Returns the mask of this subtree, meaning of the group
616 CGroupMask mask;
618 /* This returns the cgroup mask of all controllers to enable
625 mask = unit_get_own_mask(u) | unit_get_members_mask(u) | unit_get_siblings_mask(u);
626 mask &= u->manager->cgroup_supported;
628 return mask;
632 CGroupMask mask;
634 /* This returns the cgroup mask of all controllers to enable
639 mask = unit_get_members_mask(u);
640 mask &= u->manager->cgroup_supported;
642 return mask;
646 * mask bits upward. A unit is also member of itself. */
653 /* Calculate subtree mask */
674 * propagate the new mask to the parent's mask
684 * parent's members mask */
694 static const char *migrate_callback(CGroupMask mask, void *userdata) {
697 assert(mask != 0);
703 (u->cgroup_realized_mask & mask) == mask)
1230 if (e->mask & IN_IGNORED)