From: Marc-André Lureau Date: Thu, 10 Aug 2017 23:25:38 +0000 (+0200) Subject: libvhost-user: improve vu_queue_pop() doc X-Git-Tag: v2.11.0-rc0~58^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19409df8835674ca9b3c30517b032abb5eca01e6;p=thirdparty%2Fqemu.git libvhost-user: improve vu_queue_pop() doc Signed-off-by: Marc-André Lureau Reviewed-by: Paolo Bonzini --- diff --git a/contrib/libvhost-user/libvhost-user.h b/contrib/libvhost-user/libvhost-user.h index 4021f1124ee..5825b66880b 100644 --- a/contrib/libvhost-user/libvhost-user.h +++ b/contrib/libvhost-user/libvhost-user.h @@ -358,7 +358,8 @@ void vu_queue_notify(VuDev *dev, VuVirtq *vq); * @vq: a VuVirtq queue * @sz: the size of struct to return (must be >= VuVirtqElement) * - * Returns: a VuVirtqElement filled from the queue or NULL. + * Returns: a VuVirtqElement filled from the queue or NULL. The + * returned element must be free()-d by the caller. */ void *vu_queue_pop(VuDev *dev, VuVirtq *vq, size_t sz);