Lines Matching +full:parent +full:- +full:locked

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
82 * The user-configured masks can only be changed by writing to
84 * parent masks.
90 * effective_mask == configured_mask & parent's effective_mask,
91 * and if it ends up empty, it will inherit the parent's mask.
96 * The user-configured masks are always the same with effective masks.
99 /* user-configured CPUs and Memory Nodes allow to tasks */
112 * to sub-partitions below & hence excluded from its effective_cpus.
138 * - top_cpuset.old_mems_allowed is initialized to mems_allowed.
139 * - A new cpuset's old_mems_allowed is initialized when some
141 * - old_mems_allowed is used in cpuset_migrate_mm() when we change
151 * zeroing cpus/mems_allowed between ->can_attach() and ->attach().
198 return css_cs(cs->css.parent); in parent_cs()
204 return css_is_online(&cs->css) && !css_is_dying(&cs->css); in is_cpuset_online()
209 return test_bit(CS_CPU_EXCLUSIVE, &cs->flags); in is_cpu_exclusive()
214 return test_bit(CS_MEM_EXCLUSIVE, &cs->flags); in is_mem_exclusive()
219 return test_bit(CS_MEM_HARDWALL, &cs->flags); in is_mem_hardwall()
224 return test_bit(CS_SCHED_LOAD_BALANCE, &cs->flags); in is_sched_load_balance()
229 return test_bit(CS_MEMORY_MIGRATE, &cs->flags); in is_memory_migrate()
234 return test_bit(CS_SPREAD_PAGE, &cs->flags); in is_spread_page()
239 return test_bit(CS_SPREAD_SLAB, &cs->flags); in is_spread_slab()
243 * cpuset_for_each_child - traverse online children of a cpuset
249 * with RCU read locked.
252 css_for_each_child((pos_css), &(parent_cs)->css) \
256 * cpuset_for_each_descendant_pre - pre-order walk of a cpuset's descendants
262 * with RCU read locked. The caller may modify @pos_css by calling
267 css_for_each_descendant_pre((pos_css), &(root_cs)->css) \
283 * cpuset-v1.c