richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
Pablo Greco 48fc63
From cb1a8f709ff3c27fc9f43aa27f985131422795bc Mon Sep 17 00:00:00 2001
Pablo Greco 48fc63
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Pablo Greco 48fc63
Date: Tue, 13 Feb 2018 10:50:13 +0100
Pablo Greco 48fc63
Subject: [PATCH] pid1: rename unit_check_gc to unit_may_gc
Pablo Greco 48fc63
Pablo Greco 48fc63
"check" is unclear: what is true, what is false? Let's rename to "can_gc" and
Pablo Greco 48fc63
revert the return value ("positive" values are easier to grok).
Pablo Greco 48fc63
Pablo Greco 48fc63
v2:
Pablo Greco 48fc63
- rename from unit_can_gc to unit_may_gc
Pablo Greco 48fc63
Pablo Greco 48fc63
(cherry picked from commit f2f725e5cc950e84ebfd09bd64bc01c0ebdb6734)
Pablo Greco 48fc63
(cherry picked from commit 1716821fc5b93667a0bf821b25905de00818aec9)
Pablo Greco 48fc63
Pablo Greco 48fc63
Related: #1729228
Pablo Greco 48fc63
---
Pablo Greco 48fc63
 src/core/automount.c | 13 ++++++++-----
Pablo Greco 48fc63
 src/core/manager.c   |  2 +-
Pablo Greco 48fc63
 src/core/mount.c     |  9 ++++++---
Pablo Greco 48fc63
 src/core/scope.c     |  8 ++++----
Pablo Greco 48fc63
 src/core/service.c   |  8 ++++----
Pablo Greco 48fc63
 src/core/socket.c    |  6 +++---
Pablo Greco 48fc63
 src/core/socket.h    |  4 ++--
Pablo Greco 48fc63
 src/core/swap.c      |  9 ++++++---
Pablo Greco 48fc63
 src/core/unit.c      | 31 +++++++++++++++++--------------
Pablo Greco 48fc63
 src/core/unit.h      |  9 ++++-----
Pablo Greco 48fc63
 10 files changed, 55 insertions(+), 44 deletions(-)
Pablo Greco 48fc63
Pablo Greco 48fc63
diff --git a/src/core/automount.c b/src/core/automount.c
Pablo Greco 48fc63
index 4678bdc7c9..7b9c4aaf1d 100644
Pablo Greco 48fc63
--- a/src/core/automount.c
Pablo Greco 48fc63
+++ b/src/core/automount.c
Pablo Greco 48fc63
@@ -936,13 +936,16 @@ static const char *automount_sub_state_to_string(Unit *u) {
Pablo Greco 48fc63
         return automount_state_to_string(AUTOMOUNT(u)->state);
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-static bool automount_check_gc(Unit *u) {
Pablo Greco 48fc63
+static bool automount_may_gc(Unit *u) {
Pablo Greco 48fc63
+        Unit *t;
Pablo Greco 48fc63
+
Pablo Greco 48fc63
         assert(u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        if (!UNIT_TRIGGER(u))
Pablo Greco 48fc63
-                return false;
Pablo Greco 48fc63
+        t = UNIT_TRIGGER(u);
Pablo Greco 48fc63
+        if (!t)
Pablo Greco 48fc63
+                return true;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        return UNIT_VTABLE(UNIT_TRIGGER(u))->check_gc(UNIT_TRIGGER(u));
Pablo Greco 48fc63
+        return UNIT_VTABLE(t)->may_gc(t);
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
 static int automount_dispatch_io(sd_event_source *s, int fd, uint32_t events, void *userdata) {
Pablo Greco 48fc63
@@ -1115,7 +1118,7 @@ const UnitVTable automount_vtable = {
Pablo Greco 48fc63
         .active_state = automount_active_state,
Pablo Greco 48fc63
         .sub_state_to_string = automount_sub_state_to_string,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        .check_gc = automount_check_gc,
Pablo Greco 48fc63
+        .may_gc = automount_may_gc,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         .reset_failed = automount_reset_failed,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
diff --git a/src/core/manager.c b/src/core/manager.c
Pablo Greco 48fc63
index 3bca61d0b1..9dfdd67860 100644
Pablo Greco 48fc63
--- a/src/core/manager.c
Pablo Greco 48fc63
+++ b/src/core/manager.c
Pablo Greco 48fc63
@@ -871,7 +871,7 @@ static void unit_gc_sweep(Unit *u, unsigned gc_marker) {
Pablo Greco 48fc63
         if (u->in_cleanup_queue)
Pablo Greco 48fc63
                 goto bad;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        if (unit_check_gc(u))
Pablo Greco 48fc63
+        if (!unit_may_gc(u))
Pablo Greco 48fc63
                 goto good;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         u->gc_marker = gc_marker + GC_OFFSET_IN_PATH;
Pablo Greco 48fc63
diff --git a/src/core/mount.c b/src/core/mount.c
Pablo Greco 48fc63
index c7aed2333f..8a25ebd163 100644
Pablo Greco 48fc63
--- a/src/core/mount.c
Pablo Greco 48fc63
+++ b/src/core/mount.c
Pablo Greco 48fc63
@@ -1180,12 +1180,15 @@ _pure_ static const char *mount_sub_state_to_string(Unit *u) {
Pablo Greco 48fc63
         return mount_state_to_string(MOUNT(u)->state);
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-_pure_ static bool mount_check_gc(Unit *u) {
Pablo Greco 48fc63
+_pure_ static bool mount_may_gc(Unit *u) {
Pablo Greco 48fc63
         Mount *m = MOUNT(u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         assert(m);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        return m->from_proc_self_mountinfo;
Pablo Greco 48fc63
+        if (m->from_proc_self_mountinfo)
Pablo Greco 48fc63
+                return false;
Pablo Greco 48fc63
+
Pablo Greco 48fc63
+        return true;
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
 static void mount_sigchld_event(Unit *u, pid_t pid, int code, int status) {
Pablo Greco 48fc63
@@ -1954,7 +1957,7 @@ const UnitVTable mount_vtable = {
Pablo Greco 48fc63
         .active_state = mount_active_state,
Pablo Greco 48fc63
         .sub_state_to_string = mount_sub_state_to_string,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        .check_gc = mount_check_gc,
Pablo Greco 48fc63
+        .may_gc = mount_may_gc,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         .sigchld_event = mount_sigchld_event,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
diff --git a/src/core/scope.c b/src/core/scope.c
Pablo Greco 48fc63
index 29954ba285..e9b45aa3f8 100644
Pablo Greco 48fc63
--- a/src/core/scope.c
Pablo Greco 48fc63
+++ b/src/core/scope.c
Pablo Greco 48fc63
@@ -381,7 +381,7 @@ static int scope_deserialize_item(Unit *u, const char *key, const char *value, F
Pablo Greco 48fc63
         return 0;
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-static bool scope_check_gc(Unit *u) {
Pablo Greco 48fc63
+static bool scope_may_gc(Unit *u) {
Pablo Greco 48fc63
         assert(u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         /* Never clean up scopes that still have a process around,
Pablo Greco 48fc63
@@ -392,10 +392,10 @@ static bool scope_check_gc(Unit *u) {
Pablo Greco 48fc63
 
Pablo Greco 48fc63
                 r = cg_is_empty_recursive(SYSTEMD_CGROUP_CONTROLLER, u->cgroup_path, true);
Pablo Greco 48fc63
                 if (r <= 0)
Pablo Greco 48fc63
-                        return true;
Pablo Greco 48fc63
+                        return false;
Pablo Greco 48fc63
         }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        return false;
Pablo Greco 48fc63
+        return true;
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
 static void scope_notify_cgroup_empty_event(Unit *u) {
Pablo Greco 48fc63
@@ -547,7 +547,7 @@ const UnitVTable scope_vtable = {
Pablo Greco 48fc63
         .active_state = scope_active_state,
Pablo Greco 48fc63
         .sub_state_to_string = scope_sub_state_to_string,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        .check_gc = scope_check_gc,
Pablo Greco 48fc63
+        .may_gc = scope_may_gc,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         .sigchld_event = scope_sigchld_event,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
diff --git a/src/core/service.c b/src/core/service.c
Pablo Greco 48fc63
index 957c6f37cc..69ec916f2d 100644
Pablo Greco 48fc63
--- a/src/core/service.c
Pablo Greco 48fc63
+++ b/src/core/service.c
Pablo Greco 48fc63
@@ -2436,7 +2436,7 @@ static const char *service_sub_state_to_string(Unit *u) {
Pablo Greco 48fc63
         return service_state_to_string(SERVICE(u)->state);
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-static bool service_check_gc(Unit *u) {
Pablo Greco 48fc63
+static bool service_may_gc(Unit *u) {
Pablo Greco 48fc63
         Service *s = SERVICE(u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         assert(s);
Pablo Greco 48fc63
@@ -2446,9 +2446,9 @@ static bool service_check_gc(Unit *u) {
Pablo Greco 48fc63
         if (cgroup_good(s) > 0 ||
Pablo Greco 48fc63
             main_pid_good(s) > 0 ||
Pablo Greco 48fc63
             control_pid_good(s) > 0)
Pablo Greco 48fc63
-                return true;
Pablo Greco 48fc63
+                return false;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        return false;
Pablo Greco 48fc63
+        return true;
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
 _pure_ static bool service_check_snapshot(Unit *u) {
Pablo Greco 48fc63
@@ -3461,7 +3461,7 @@ const UnitVTable service_vtable = {
Pablo Greco 48fc63
         .active_state = service_active_state,
Pablo Greco 48fc63
         .sub_state_to_string = service_sub_state_to_string,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        .check_gc = service_check_gc,
Pablo Greco 48fc63
+        .may_gc = service_may_gc,
Pablo Greco 48fc63
         .check_snapshot = service_check_snapshot,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         .sigchld_event = service_sigchld_event,
Pablo Greco 48fc63
diff --git a/src/core/socket.c b/src/core/socket.c
Pablo Greco 48fc63
index efefe7ce5d..3e4cdd467f 100644
Pablo Greco 48fc63
--- a/src/core/socket.c
Pablo Greco 48fc63
+++ b/src/core/socket.c
Pablo Greco 48fc63
@@ -2269,12 +2269,12 @@ const char* socket_port_type_to_string(SocketPort *p) {
Pablo Greco 48fc63
         }
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-_pure_ static bool socket_check_gc(Unit *u) {
Pablo Greco 48fc63
+_pure_ static bool socket_may_gc(Unit *u) {
Pablo Greco 48fc63
         Socket *s = SOCKET(u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         assert(u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        return s->n_connections > 0;
Pablo Greco 48fc63
+        return s->n_connections == 0;
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
 static int socket_dispatch_io(sd_event_source *source, int fd, uint32_t revents, void *userdata) {
Pablo Greco 48fc63
@@ -2713,7 +2713,7 @@ const UnitVTable socket_vtable = {
Pablo Greco 48fc63
         .active_state = socket_active_state,
Pablo Greco 48fc63
         .sub_state_to_string = socket_sub_state_to_string,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        .check_gc = socket_check_gc,
Pablo Greco 48fc63
+        .may_gc = socket_may_gc,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         .sigchld_event = socket_sigchld_event,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
diff --git a/src/core/socket.h b/src/core/socket.h
Pablo Greco 48fc63
index a2e08998c0..cc1428b3f7 100644
Pablo Greco 48fc63
--- a/src/core/socket.h
Pablo Greco 48fc63
+++ b/src/core/socket.h
Pablo Greco 48fc63
@@ -114,8 +114,8 @@ struct Socket {
Pablo Greco 48fc63
         ExecRuntime *exec_runtime;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         /* For Accept=no sockets refers to the one service we'll
Pablo Greco 48fc63
-        activate. For Accept=yes sockets is either NULL, or filled
Pablo Greco 48fc63
-        when the next service we spawn. */
Pablo Greco 48fc63
+         * activate. For Accept=yes sockets is either NULL, or filled
Pablo Greco 48fc63
+         * to refer to the next service we spawn. */
Pablo Greco 48fc63
         UnitRef service;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         SocketState state, deserialized_state;
Pablo Greco 48fc63
diff --git a/src/core/swap.c b/src/core/swap.c
Pablo Greco 48fc63
index e71de4e657..1f69736aa3 100644
Pablo Greco 48fc63
--- a/src/core/swap.c
Pablo Greco 48fc63
+++ b/src/core/swap.c
Pablo Greco 48fc63
@@ -949,12 +949,15 @@ _pure_ static const char *swap_sub_state_to_string(Unit *u) {
Pablo Greco 48fc63
         return swap_state_to_string(SWAP(u)->state);
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-_pure_ static bool swap_check_gc(Unit *u) {
Pablo Greco 48fc63
+_pure_ static bool swap_may_gc(Unit *u) {
Pablo Greco 48fc63
         Swap *s = SWAP(u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         assert(s);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        return s->from_proc_swaps;
Pablo Greco 48fc63
+        if (s->from_proc_swaps)
Pablo Greco 48fc63
+                return false;
Pablo Greco 48fc63
+
Pablo Greco 48fc63
+        return true;
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
 static void swap_sigchld_event(Unit *u, pid_t pid, int code, int status) {
Pablo Greco 48fc63
@@ -1497,7 +1500,7 @@ const UnitVTable swap_vtable = {
Pablo Greco 48fc63
         .active_state = swap_active_state,
Pablo Greco 48fc63
         .sub_state_to_string = swap_sub_state_to_string,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        .check_gc = swap_check_gc,
Pablo Greco 48fc63
+        .may_gc = swap_may_gc,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         .sigchld_event = swap_sigchld_event,
Pablo Greco 48fc63
 
Pablo Greco 48fc63
diff --git a/src/core/unit.c b/src/core/unit.c
Pablo Greco 48fc63
index b004aa8fcd..1b8ec9a20e 100644
Pablo Greco 48fc63
--- a/src/core/unit.c
Pablo Greco 48fc63
+++ b/src/core/unit.c
Pablo Greco 48fc63
@@ -282,15 +282,19 @@ int unit_set_description(Unit *u, const char *description) {
Pablo Greco 48fc63
         return 0;
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-bool unit_check_gc(Unit *u) {
Pablo Greco 48fc63
+bool unit_may_gc(Unit *u) {
Pablo Greco 48fc63
         UnitActiveState state;
Pablo Greco 48fc63
         assert(u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
+        /* Checks whether the unit is ready to be unloaded for garbage collection.
Pablo Greco 48fc63
+         * Returns true when the unit may be collected, and false if there's some
Pablo Greco 48fc63
+         * reason to keep it loaded. */
Pablo Greco 48fc63
+
Pablo Greco 48fc63
         if (u->job)
Pablo Greco 48fc63
-                return true;
Pablo Greco 48fc63
+                return false;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         if (u->nop_job)
Pablo Greco 48fc63
-                return true;
Pablo Greco 48fc63
+                return false;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         state = unit_active_state(u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
@@ -303,22 +307,21 @@ bool unit_check_gc(Unit *u) {
Pablo Greco 48fc63
         /* But we keep the unit object around for longer when it is
Pablo Greco 48fc63
          * referenced or configured to not be gc'ed */
Pablo Greco 48fc63
         if (state != UNIT_INACTIVE)
Pablo Greco 48fc63
-                return true;
Pablo Greco 48fc63
+                return false;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         if (UNIT_VTABLE(u)->no_gc)
Pablo Greco 48fc63
-                return true;
Pablo Greco 48fc63
+                return false;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         if (u->no_gc)
Pablo Greco 48fc63
-                return true;
Pablo Greco 48fc63
+                return false;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         if (u->refs)
Pablo Greco 48fc63
-                return true;
Pablo Greco 48fc63
+                return false;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        if (UNIT_VTABLE(u)->check_gc)
Pablo Greco 48fc63
-                if (UNIT_VTABLE(u)->check_gc(u))
Pablo Greco 48fc63
-                        return true;
Pablo Greco 48fc63
+        if (UNIT_VTABLE(u)->may_gc && !UNIT_VTABLE(u)->may_gc(u))
Pablo Greco 48fc63
+                return false;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        return false;
Pablo Greco 48fc63
+        return true;
Pablo Greco 48fc63
 }
Pablo Greco 48fc63
 
Pablo Greco 48fc63
 void unit_add_to_load_queue(Unit *u) {
Pablo Greco 48fc63
@@ -348,7 +351,7 @@ void unit_add_to_gc_queue(Unit *u) {
Pablo Greco 48fc63
         if (u->in_gc_queue || u->in_cleanup_queue)
Pablo Greco 48fc63
                 return;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        if (unit_check_gc(u))
Pablo Greco 48fc63
+        if (!unit_may_gc(u))
Pablo Greco 48fc63
                 return;
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         LIST_PREPEND(gc_queue, u->manager->gc_queue, u);
Pablo Greco 48fc63
@@ -888,7 +891,7 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) {
Pablo Greco 48fc63
                 "%s\tActive Enter Timestamp: %s\n"
Pablo Greco 48fc63
                 "%s\tActive Exit Timestamp: %s\n"
Pablo Greco 48fc63
                 "%s\tInactive Enter Timestamp: %s\n"
Pablo Greco 48fc63
-                "%s\tGC Check Good: %s\n"
Pablo Greco 48fc63
+                "%s\tMay GC: %s\n"
Pablo Greco 48fc63
                 "%s\tNeed Daemon Reload: %s\n"
Pablo Greco 48fc63
                 "%s\tTransient: %s\n"
Pablo Greco 48fc63
                 "%s\tSlice: %s\n"
Pablo Greco 48fc63
@@ -905,7 +908,7 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) {
Pablo Greco 48fc63
                 prefix, strna(format_timestamp(timestamp2, sizeof(timestamp2), u->active_enter_timestamp.realtime)),
Pablo Greco 48fc63
                 prefix, strna(format_timestamp(timestamp3, sizeof(timestamp3), u->active_exit_timestamp.realtime)),
Pablo Greco 48fc63
                 prefix, strna(format_timestamp(timestamp4, sizeof(timestamp4), u->inactive_enter_timestamp.realtime)),
Pablo Greco 48fc63
-                prefix, yes_no(unit_check_gc(u)),
Pablo Greco 48fc63
+                prefix, yes_no(unit_may_gc(u)),
Pablo Greco 48fc63
                 prefix, yes_no(unit_need_daemon_reload(u)),
Pablo Greco 48fc63
                 prefix, yes_no(u->transient),
Pablo Greco 48fc63
                 prefix, strna(unit_slice_name(u)),
Pablo Greco 48fc63
diff --git a/src/core/unit.h b/src/core/unit.h
Pablo Greco 48fc63
index 091ef7596e..3f411a1793 100644
Pablo Greco 48fc63
--- a/src/core/unit.h
Pablo Greco 48fc63
+++ b/src/core/unit.h
Pablo Greco 48fc63
@@ -353,10 +353,9 @@ struct UnitVTable {
Pablo Greco 48fc63
          * unit is in. */
Pablo Greco 48fc63
         const char* (*sub_state_to_string)(Unit *u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-        /* Return true when there is reason to keep this entry around
Pablo Greco 48fc63
-         * even nothing references it and it isn't active in any
Pablo Greco 48fc63
-         * way */
Pablo Greco 48fc63
-        bool (*check_gc)(Unit *u);
Pablo Greco 48fc63
+        /* Return false when there is a reason to prevent this unit from being gc'ed
Pablo Greco 48fc63
+         * even though nothing references it and it isn't active in any way. */
Pablo Greco 48fc63
+        bool (*may_gc)(Unit *u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
         /* When the unit is not running and no job for it queued we
Pablo Greco 48fc63
          * shall release its runtime resources */
Pablo Greco 48fc63
@@ -496,7 +495,7 @@ int unit_add_exec_dependencies(Unit *u, ExecContext *c);
Pablo Greco 48fc63
 int unit_choose_id(Unit *u, const char *name);
Pablo Greco 48fc63
 int unit_set_description(Unit *u, const char *description);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
-bool unit_check_gc(Unit *u);
Pablo Greco 48fc63
+bool unit_may_gc(Unit *u);
Pablo Greco 48fc63
 
Pablo Greco 48fc63
 void unit_add_to_load_queue(Unit *u);
Pablo Greco 48fc63
 void unit_add_to_dbus_queue(Unit *u);