Document locking assumption of agent_find_event()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 6 Sep 2015 23:40:13 +0000 (19:40 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 6 Sep 2015 23:45:11 +0000 (19:45 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/agent.c

index bc72ff93f61ed16c7fa43c8a236c2d8464d7401c..a4b1b34344bea6f4527df623190187a33d0efe19 100644 (file)
@@ -920,7 +920,8 @@ void agent_event_next_duplicate(const char *name,
 /*
  * Find a agent event in the given agent using name and loglevel.
  *
- * RCU read side lock MUST be acquired.
+ * RCU read side lock MUST be acquired. It must be kept for as long as
+ * the returned agent_event is used.
  *
  * Return object if found else NULL.
  */
This page took 0.026829 seconds and 5 git commands to generate.