Searched refs:jobs (Results 1 - 10 of 10) sorted by relevance

/systemd/src/core/
H A Dtransaction.h31 Hashmap *jobs; /* Unit object => Job object list 1:1 */ member in struct:Transaction
H A Dtransaction.c46 /* Deletes all jobs associated with a certain unit from the
49 while ((j = hashmap_get(tr->jobs, u)))
58 while ((j = hashmap_first(tr->jobs)))
61 assert(hashmap_isempty(tr->jobs));
181 /* Both jobs don't matter, so let's
224 "Fixing conflicting jobs %s/%s,%s/%s by deleting job %s/%s",
242 /* First step, check whether any of the jobs for one specific
244 HASHMAP_FOREACH(j, tr->jobs, i) {
253 /* OK, we could not merge all jobs for this
266 "Transaction contains conflicting jobs '
[all...]
H A Ddbus.c482 l = new0(char*, hashmap_size(m->jobs)+1);
486 HASHMAP_FOREACH(j, m->jobs, i) {
494 assert(hashmap_size(m->jobs) == k);
1075 HASHMAP_FOREACH(j, m->jobs, i)
H A Dmanager.h80 * not, and the list of jobs may neither. */
82 /* Active jobs and units */
84 Hashmap *jobs; /* job id => Job object 1:1 */ member in struct:Manager
96 /* Units and jobs that have not yet been announced via
H A Dmanager.c89 /* Initial delay and the interval for printing status messages about running jobs */
122 (void) sd_event_source_set_description(m->jobs_in_progress_event_source, "manager-jobs-in-progress");
185 HASHMAP_FOREACH(j, m->jobs, i)
189 /* m->n_running_jobs must be consistent with the contents of m->jobs,
612 r = hashmap_ensure_allocated(&m->jobs, NULL);
919 assert(hashmap_isempty(m->jobs));
948 hashmap_free(m->jobs);
1275 return hashmap_get(m->jobs, UINT32_TO_PTR(id));
1406 HASHMAP_FOREACH(j, s->jobs, i)
1428 while ((j = hashmap_first(m->jobs)))
[all...]
H A Ddbus-manager.c287 return sd_bus_message_append(reply, "u", (uint32_t) hashmap_size(m->jobs));
309 d = 1.0 - ((double) hashmap_size(m->jobs) / (double) m->n_installed_jobs);
980 HASHMAP_FOREACH(j, m->jobs, i) {
H A Djob.c147 hashmap_remove(j->manager->jobs, UINT32_TO_PTR(j->id));
161 * JOB_RESTART jobs on the other hand can be merged, because they get
847 /* Patch restart jobs so that they become normal start jobs */
864 /* Fail depending jobs on failure */
895 /* Try to start the next jobs that can be started */
H A Dunit.c1889 * hence needs to invalidate jobs. */
1950 * additional jobs just because something is already
2735 r = hashmap_put(u->manager->jobs, UINT32_TO_PTR(j->id), j);
2743 hashmap_remove(u->manager->jobs, UINT32_TO_PTR(j->id));
/systemd/src/shared/
H A Dbus-util.c1867 Set *jobs; member in struct:BusWaitForJobs
1901 found = set_remove(d->jobs, (char*) path);
1920 set_free_free(d->jobs);
2133 while (!set_isempty(d->jobs)) {
2162 r = set_ensure_allocated(&d->jobs, &string_hash_ops);
2166 return set_put_strdup(d->jobs, path);
/systemd/src/systemctl/
H A Dsystemctl.c2052 static void output_jobs_list(const struct job_info* jobs, unsigned n, bool skipped) { argument
2058 assert(n == 0 || jobs);
2065 printf("%sNo jobs %s.%s\n", on, skipped ? "listed" : "running", off);
2077 for (j = jobs; j < jobs + n; j++) {
2099 for (j = jobs; j < jobs + n; j++) {
2120 printf("\n%s%u jobs listed%s.\n", on, n, off);
2132 _cleanup_free_ struct job_info *jobs = NULL; local
2156 return log_error_errno(r, "Failed to list jobs
[all...]

Completed in 4188 milliseconds