Lines Matching refs:mask
1726 CGroupMask mask = 0; in unit_get_cgroup_mask() local
1736 mask |= get_cpu_accounting_mask(); in unit_get_cgroup_mask()
1741 mask |= CGROUP_MASK_CPU; in unit_get_cgroup_mask()
1744 mask |= CGROUP_MASK_CPUSET; in unit_get_cgroup_mask()
1747 mask |= CGROUP_MASK_IO | CGROUP_MASK_BLKIO; in unit_get_cgroup_mask()
1752 mask |= CGROUP_MASK_MEMORY; in unit_get_cgroup_mask()
1756 mask |= CGROUP_MASK_DEVICES | CGROUP_MASK_BPF_DEVICES; in unit_get_cgroup_mask()
1760 mask |= CGROUP_MASK_PIDS; in unit_get_cgroup_mask()
1762 return CGROUP_MASK_EXTEND_JOINED(mask); in unit_get_cgroup_mask()
1766 CGroupMask mask = 0; in unit_get_bpf_mask() local
1772 mask |= CGROUP_MASK_BPF_FIREWALL; in unit_get_bpf_mask()
1775 mask |= CGROUP_MASK_BPF_FOREIGN; in unit_get_bpf_mask()
1778 mask |= CGROUP_MASK_BPF_SOCKET_BIND; in unit_get_bpf_mask()
1781 mask |= CGROUP_MASK_BPF_RESTRICT_NETWORK_INTERFACES; in unit_get_bpf_mask()
1783 return mask; in unit_get_bpf_mask()
1880 CGroupMask mask; in unit_get_ancestor_disable_mask() local
1884 mask = unit_get_disable_mask(u); in unit_get_ancestor_disable_mask()
1891 mask |= unit_get_ancestor_disable_mask(slice); in unit_get_ancestor_disable_mask()
1893 return mask; in unit_get_ancestor_disable_mask()
1897 CGroupMask own_mask, mask; in unit_get_target_mask() local
1909 mask = own_mask | unit_get_members_mask(u) | unit_get_siblings_mask(u); in unit_get_target_mask()
1911 mask &= u->manager->cgroup_supported; in unit_get_target_mask()
1912 mask &= ~unit_get_ancestor_disable_mask(u); in unit_get_target_mask()
1914 return mask; in unit_get_target_mask()
1918 CGroupMask mask; in unit_get_enable_mask() local
1925 mask = unit_get_members_mask(u); in unit_get_enable_mask()
1926 mask &= u->manager->cgroup_supported; in unit_get_enable_mask()
1927 mask &= ~unit_get_ancestor_disable_mask(u); in unit_get_enable_mask()
1929 return mask; in unit_get_enable_mask()
1945 const char *unit_get_realized_cgroup_path(Unit *u, CGroupMask mask) { in unit_get_realized_cgroup_path() argument
1953 FLAGS_SET(u->cgroup_realized_mask, mask)) in unit_get_realized_cgroup_path()
1962 static const char *migrate_callback(CGroupMask mask, void *userdata) { in migrate_callback() argument
1966 return strempty(unit_get_realized_cgroup_path(userdata, mask)); in migrate_callback()
3280 if (e->mask & IN_IGNORED) in on_cgroup_inotify_event()
3299 CGroupMask mask = 0; in cg_bpf_mask_supported() local
3307 mask |= CGROUP_MASK_BPF_FIREWALL; in cg_bpf_mask_supported()
3314 mask |= CGROUP_MASK_BPF_DEVICES; in cg_bpf_mask_supported()
3321 mask |= CGROUP_MASK_BPF_FOREIGN; in cg_bpf_mask_supported()
3328 mask |= CGROUP_MASK_BPF_SOCKET_BIND; in cg_bpf_mask_supported()
3335 mask |= CGROUP_MASK_BPF_RESTRICT_NETWORK_INTERFACES; in cg_bpf_mask_supported()
3337 *ret = mask; in cg_bpf_mask_supported()
3345 CGroupMask mask; in manager_setup_cgroup() local
3485 r = cg_bpf_mask_supported(&mask); in manager_setup_cgroup()
3488 m->cgroup_supported |= mask; in manager_setup_cgroup()