From patchwork Thu Sep 22 09:23:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 673267 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sfs7q6c0Sz9t15 for ; Thu, 22 Sep 2016 19:46:15 +1000 (AEST) Received: from localhost ([::1]:34560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0a5-0007UI-CN for incoming@patchwork.ozlabs.org; Thu, 22 Sep 2016 05:46:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0GP-0003Du-6a for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn0GO-00048J-9Z for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0GO-00048A-3B for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:52 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 97AEC7EA87 for ; Thu, 22 Sep 2016 09:25:51 +0000 (UTC) Received: from localhost (ovpn-116-83.phx2.redhat.com [10.3.116.83]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u8M9PnoW030310; Thu, 22 Sep 2016 05:25:50 -0400 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: qemu-devel@nongnu.org Date: Thu, 22 Sep 2016 13:23:03 +0400 Message-Id: <20160922092305.2895-29-marcandre.lureau@redhat.com> In-Reply-To: <20160922092305.2895-1-marcandre.lureau@redhat.com> References: <20160922092305.2895-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 22 Sep 2016 09:25:51 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 28/30] qmp-commands: move 'getfd' doc to schema X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , armbru@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Marc-André Lureau --- docs/qmp-commands.txt | 22 ---------------------- qapi-schema.json | 7 +++++++ 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 03d8c54..37ff37d 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -673,28 +673,6 @@ Arguments: Returns: Nothing on success If "device" does not exist or cannot be determined, DeviceNotFound -getfd ------ - -Receive a file descriptor via SCM rights and assign it a name. - -Arguments: - -- "fdname": file descriptor name (json-string) - -Example: - --> { "execute": "getfd", "arguments": { "fdname": "fd1" } } -<- { "return": {} } - -Notes: - -(1) If the name specified by the "fdname" argument already exists, - the file descriptor assigned to it will be closed and replaced - by the received file descriptor. -(2) The 'closefd' command can be used to explicitly close the file - descriptor when it is no longer needed. - closefd ------- diff --git a/qapi-schema.json b/qapi-schema.json index b552378..58cb15f 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3875,8 +3875,15 @@ # Notes: If @fdname already exists, the file descriptor assigned to # it will be closed and replaced by the received file # descriptor. +# # The 'closefd' command can be used to explicitly close the # file descriptor when it is no longer needed. +# +# Example: +# +# -> { "execute": "getfd", "arguments": { "fdname": "fd1" } } +# <- { "return": {} } +# ## { 'command': 'getfd', 'data': {'fdname': 'str'} }