Lines Matching refs:candidates
273 _cleanup_hashmap_free_ Hashmap *candidates = NULL; in get_monitored_cgroup_contexts_candidates() local
280 candidates = hashmap_new(&oomd_cgroup_ctx_hash_ops); in get_monitored_cgroup_contexts_candidates()
281 if (!candidates) in get_monitored_cgroup_contexts_candidates()
285 r = recursively_get_cgroup_context(candidates, ctx->path); in get_monitored_cgroup_contexts_candidates()
292 *ret_candidates = TAKE_PTR(candidates); in get_monitored_cgroup_contexts_candidates()
297 …int update_monitored_cgroup_contexts_candidates(Hashmap *monitored_cgroups, Hashmap **candidates) { in update_monitored_cgroup_contexts_candidates() argument
302 assert(candidates); in update_monitored_cgroup_contexts_candidates()
303 assert(*candidates); in update_monitored_cgroup_contexts_candidates()
309 oomd_update_cgroup_contexts_between_hashmaps(*candidates, new_candidates); in update_monitored_cgroup_contexts_candidates()
311 hashmap_free(*candidates); in update_monitored_cgroup_contexts_candidates()
312 *candidates = TAKE_PTR(new_candidates); in update_monitored_cgroup_contexts_candidates()
390 _cleanup_hashmap_free_ Hashmap *candidates = NULL; in monitor_swap_contexts_handler() local
400 … r = get_monitored_cgroup_contexts_candidates(m->monitored_swap_cgroup_contexts, &candidates); in monitor_swap_contexts_handler()
407 r = oomd_kill_by_swap_usage(candidates, threshold, m->dry_run, &selected); in monitor_swap_contexts_handler()