From nobody Sun May 19 20:13:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1614178180; cv=none; d=zohomail.com; s=zohoarc; b=SgqSXw91BFIKICEWYpLWWeLE4gE5CFmGJSbwsbz/SWlgSSdYs3ZtMQYZr58dWA9B//ZA2t/4S/9x2Ouiuhv9Rq17H8I86/Nan7mASw5BPcEY7QT0WyZlwNE5ivgnGbc8QBukw39Pqe4/shC/Whh9CC0ETW/9BsCIwZr29wFGfTM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614178180; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=ypByngGSRw6A+zeQ65T/zkNyEVOzBLDmMC9+f55TLys=; b=AFJvtz45fCtsRh4j76wd2MgiZcerbv4vJus2Yy6lct/5jgNevJTKRtzSL0FbFMWAxEwFlAF3M5qu/Z67BwzapRz9wuSmLeL/C9eZsYfkBE07IT86UAQNN9z1I7huc9swviyIoBY5keUz/CKSx0nv6wkNZfl0vpXlRglmrPyX7iI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 161417818007530.2121471192512; Wed, 24 Feb 2021 06:49:40 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-243-cHQO1zgFMRWlpd-AhMan_w-1; Wed, 24 Feb 2021 09:49:36 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B69C0113B627; Wed, 24 Feb 2021 14:04:31 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1D2325D6AD; Wed, 24 Feb 2021 14:04:31 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 972BA58073; Wed, 24 Feb 2021 14:04:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 11OE4SEq017692 for ; Wed, 24 Feb 2021 09:04:28 -0500 Received: by smtp.corp.redhat.com (Postfix) id 3645360C5B; Wed, 24 Feb 2021 14:04:28 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.193.223]) by smtp.corp.redhat.com (Postfix) with ESMTP id ACCB460CE6 for ; Wed, 24 Feb 2021 14:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614178179; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ypByngGSRw6A+zeQ65T/zkNyEVOzBLDmMC9+f55TLys=; b=IlsOTx/bimGmhrcWGNU4PtEfXIy70LpB2yJ4gnfjhxIVqRzgBbVUrnjZb5V2MDfkx0qU95 5Vou2RacPuWqgF0lISJx+sGuoWaXO70V7AsCm2QkYqvxIjYiiEk1VnCZAetV/ZO8buOhLR elKvdodgPSmWSkBflAkR5exwXpFvnRI= X-MC-Unique: cHQO1zgFMRWlpd-AhMan_w-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] qemu_monitor: Document qemuMonitorUnregister() Date: Wed, 24 Feb 2021 15:04:20 +0100 Message-Id: <3bfcb4eaa6200c6db7e85abc96b4a8b1f45b3486.1614175460.git.mprivozn@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" The most important bit is that the caller is expected to pass locked monitor. Signed-off-by: Michal Privoznik Reviewed-by: Andrea Bolognani --- src/qemu/qemu_monitor.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index ed35da17e1..73f337a6be 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -850,6 +850,13 @@ qemuMonitorRegister(qemuMonitorPtr mon) } =20 =20 +/** + * qemuMonitorUnregister: + * @mon: monitor object + * + * Unregister monitor from the event loop. The monitor object + * must be locked before calling this function. + */ void qemuMonitorUnregister(qemuMonitorPtr mon) { --=20 2.26.2