Searched defs:units (Results 1 - 7 of 7) sorted by relevance

/systemd/src/dbus1-generator/
H A Ddbus1-generator.c249 static int link_busnames_target(const char *units) { argument
252 f = strjoina(units, "/" SPECIAL_BUSNAMES_TARGET);
262 static int link_compatibility(const char *units) { argument
265 f = strjoina(units, "/systemd-bus-proxyd.socket");
271 f = strjoina(units, "/systemd-bus-proxyd.socket");
285 const char *path, *type, *units; local
311 units = USER_DATA_UNIT_PATH;
315 units = SYSTEM_DATA_UNIT_PATH;
322 q = link_busnames_target(units);
326 q = link_compatibility(units);
[all...]
/systemd/src/analyze/
H A Danalyze-verify.c245 Unit *units[strv_length(filenames)]; local
272 log_debug("Loading remaining units from the command line...");
287 k = manager_load_unit(m, NULL, prepared, &err, &units[count]);
297 k = verify_unit(units[i], check_man);
H A Danalyze.c361 log_error("Failed to list units: %s", bus_error_message(&error, -r));
813 static int list_dependencies_one(sd_bus *bus, const char *name, unsigned int level, char ***units, argument
823 if (strv_extend(units, name))
874 if (strv_contains(*units, *c)) {
882 r = list_dependencies_one(bus, *c, level + 1, units,
894 _cleanup_strv_free_ char **units = NULL; local
944 return list_dependencies_one(bus, name, 0, &units, 0);
1022 _cleanup_strv_free_ char **units = NULL; local
1038 r = bus_get_unit_property_strv(bus, u->unit_path, prop, &units);
1042 STRV_FOREACH(unit, units) {
[all...]
/systemd/src/fstab-generator/
H A Dfstab-generator.c169 _cleanup_strv_free_ char **names = NULL, **units = NULL; local
189 r = strv_consume(&units, x);
194 if (units) {
195 res = strv_join(units, " ");
/systemd/src/core/
H A Dmanager.h78 /* Note that the set of units we know of is allowed to be
82 /* Active jobs and units */
83 Hashmap *units; /* name string => Unit object n:1 */ member in struct:Manager
86 /* To make it easy to iterate through the units of a specific
115 * watched by two different units: once the unit that forked
118 * one or two units for each PID we just use to hashmaps
123 /* A set contains all units which cgroup should be refreshed after startup */
126 /* A set which contains all currently failed units */
290 /* This maps all possible path prefixes to the units needing
/systemd/src/journal/
H A Djournalctl.c1272 Set **units) {
1319 *units = found;
1371 _cleanup_set_free_free_ Set *units = NULL; local
1375 r = get_possible_units(j, SYSTEM_UNITS, patterns, &units);
1379 SET_FOREACH(u, units, it) {
1416 _cleanup_set_free_free_ Set *units = NULL; local
1420 r = get_possible_units(j, USER_UNITS, patterns, &units);
1424 SET_FOREACH(u, units, it) {
2218 log_error_errno(r, "Failed to add filter for units: %m");
1268 get_possible_units( sd_journal *j, const char *fields, char **patterns, Set **units) argument
/systemd/src/systemctl/
H A Dsystemctl.c511 printf("%s%u loaded units listed.%s\n"
515 printf("%s%u loaded units listed.%s Pass --all to see loaded but inactive units, too.\n"
559 return log_error_errno(r, "Failed to list units: %s", bus_error_message(&error, r));
1300 static void output_unit_file_list(const UnitFileList *units, unsigned c) { argument
1307 for (u = units; u < units + c; u++) {
1327 for (u = units; u < units + c; u++) {
1360 _cleanup_free_ UnitFileList *units local
1603 list_dependencies_one( sd_bus *bus, const char *name, int level, char ***units, unsigned int branches) argument
1667 _cleanup_strv_free_ char **units = NULL; local
[all...]

Completed in 39 milliseconds