]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
libxl: event: Document lifetime API for libxl_childproc_setmode
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 17 Jan 2020 18:12:07 +0000 (18:12 +0000)
committerWei Liu <wl@xen.org>
Mon, 20 Jan 2020 12:10:30 +0000 (12:10 +0000)
There is already an identical comment for
libxl_osevent_register_hooks.

libxl_childproc_setmode's hooks parameter has the same property and
this should be documented.

Reported-by; George Dunlap <george.dunlap@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libxl/libxl_event.h

index d1517f7456a2d5ed9ef79087db0222f6fdb32950..8d0aa6417efa255522286b57b457c637f9cf1efd 100644 (file)
@@ -548,6 +548,8 @@ typedef struct {
  * May not be called when libxl might have any child processes, or the
  * behaviour is undefined.  So it is best to call this at
  * initialisation.
+ *
+ * The value *hooks is not copied and must outlast the libxl_ctx.
  */
 void libxl_childproc_setmode(libxl_ctx *ctx, const libxl_childproc_hooks *hooks,
                              void *user);