Lines Matching defs:unit_infos

360 static int output_units_list(const UnitInfo *unit_infos, unsigned c) {
373 for (u = unit_infos; u < unit_infos + c; u++) {
420 for (u = unit_infos; u < unit_infos + c; u++) {
527 UnitInfo **unit_infos,
539 assert(unit_infos);
571 if (!GREEDY_REALLOC(*unit_infos, size, c+1))
574 (*unit_infos)[c++] = u;
605 _cleanup_free_ UnitInfo *unit_infos = NULL;
619 c = get_unit_list(bus, NULL, patterns, &unit_infos, 0, &reply);
647 k = get_unit_list(container, *i, patterns, &unit_infos, c, &reply);
665 *_unit_infos = unit_infos;
666 unit_infos = NULL;
675 _cleanup_free_ UnitInfo *unit_infos = NULL;
687 r = get_unit_list_recursive(bus, strv_skip(argv, 1), &unit_infos, &replies, &machines);
691 qsort_safe(unit_infos, r, sizeof(UnitInfo), compare_unit_info);
692 return output_units_list(unit_infos, r);
884 _cleanup_free_ UnitInfo *unit_infos = NULL;
899 n = get_unit_list_recursive(bus, strv_skip(argv, 1), &unit_infos, &replies, &machines);
903 for (u = unit_infos; u < unit_infos + n; u++) {
1191 _cleanup_free_ UnitInfo *unit_infos = NULL;
1206 n = get_unit_list_recursive(bus, strv_skip(argv, 1), &unit_infos, &replies, &machines);
1212 for (u = unit_infos; u < unit_infos + n; u++) {
2659 _cleanup_free_ UnitInfo *unit_infos = NULL;
2662 r = get_unit_list(bus, NULL, globs, &unit_infos, 0, &reply);
2673 mangled[n] = strdup(unit_infos[i].id);
4540 _cleanup_free_ UnitInfo *unit_infos = NULL;
4545 r = get_unit_list(bus, NULL, NULL, &unit_infos, 0, &reply);
4553 qsort_safe(unit_infos, c, sizeof(UnitInfo), compare_unit_info);
4555 for (u = unit_infos; u < unit_infos + c; u++) {