Lines Matching refs:descend
277 #define FOREACH_PRISON_DESCENDANT(ppr, cpr, descend) \
278 for ((cpr) = (ppr), (descend) = 1; \
279 ((cpr) = (((descend) && !LIST_EMPTY(&(cpr)->pr_children)) \
283 : (((descend) = LIST_NEXT(cpr, pr_sibling) != NULL) \
286 if (!(descend)) \
293 #define FOREACH_PRISON_DESCENDANT_LOCKED(ppr, cpr, descend) \
294 for ((cpr) = (ppr), (descend) = 1; \
295 ((cpr) = (((descend) && !LIST_EMPTY(&(cpr)->pr_children)) \
300 (descend) = LIST_NEXT(cpr, pr_sibling) != NULL) \
303 if ((descend) ? (prison_lock(cpr), 0) : 1) \
310 #define FOREACH_PRISON_DESCENDANT_LOCKED_LEVEL(ppr, cpr, descend, level)\
311 for ((cpr) = (ppr), (descend) = 1, (level) = 0; \
312 ((cpr) = (((descend) && !LIST_EMPTY(&(cpr)->pr_children)) \
317 (descend) = LIST_NEXT(cpr, pr_sibling) != NULL) \
320 if ((descend) ? (prison_lock(cpr), 0) : 1) \