From patchwork Sun Mar 8 03:22:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 11425413 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AEA9014BC for ; Sun, 8 Mar 2020 03:23:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7E0B620828 for ; Sun, 8 Mar 2020 03:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583637780; bh=udtvriTR0q24CtSe13/uuLQjPwV5O+ibypb6042FoWI=; h=From:To:Subject:Date:List-ID:From; b=g8FBXZlEh4ySkE7n1hV7cCTb7lthxtl6A8MD3RmniGs+/gw00Utnc8Bp1T+PS814r k5EwB+C799xCaIMmo5Lr2pDiXmUQvHOcOkrtTFClF1J/Wv1HV1vIFj80JC8jt3nNSq dpz0t9mawptFi0YczOyd8GP+WTVBB/CZ1HLauS1M= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726259AbgCHDXA (ORCPT ); Sat, 7 Mar 2020 22:23:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:37502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbgCHDW7 (ORCPT ); Sat, 7 Mar 2020 22:22:59 -0500 Received: from sol.hsd1.ca.comcast.net (c-107-3-166-239.hsd1.ca.comcast.net [107.3.166.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 39DC92070A; Sun, 8 Mar 2020 03:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583637779; bh=udtvriTR0q24CtSe13/uuLQjPwV5O+ibypb6042FoWI=; h=From:To:Subject:Date:From; b=IVaSyaur//mvEy70vJdFxJkHv6odnzYpppA8/9Ef383nYmYNG9aRkqCxD8pNhiyA/ eK/C4Vcf3tO0ABRoMSlspdYYjYnZLJqwXdG8Pz+BN5D508PHj5CZjA+R5JWdIPBZcU rAHdNI9qtwCXo6ph9jVxdWevAeoEpW5DZDTpQhHE= From: Eric Biggers To: "Rafael J . Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org Subject: [PATCH] docs: power: fix docs for ioctls that return loff_t via pointer Date: Sat, 7 Mar 2020 19:22:16 -0800 Message-Id: <20200308032216.998068-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Eric Biggers Correctly document how the SNAPSHOT_GET_IMAGE_SIZE and SNAPSHOT_AVAIL_SWAP_SIZE ioctls return their result. Signed-off-by: Eric Biggers --- Documentation/power/userland-swsusp.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/power/userland-swsusp.rst b/Documentation/power/userland-swsusp.rst index a0fa51bb1a4d..1cf62d80a9ca 100644 --- a/Documentation/power/userland-swsusp.rst +++ b/Documentation/power/userland-swsusp.rst @@ -69,11 +69,13 @@ SNAPSHOT_PREF_IMAGE_SIZE SNAPSHOT_GET_IMAGE_SIZE return the actual size of the hibernation image + (the last argument should be a pointer to a loff_t variable that + will contain the result if the call is successful) SNAPSHOT_AVAIL_SWAP_SIZE - return the amount of available swap in bytes (the - last argument should be a pointer to an unsigned int variable that will - contain the result if the call is successful). + return the amount of available swap in bytes + (the last argument should be a pointer to a loff_t variable that + will contain the result if the call is successful) SNAPSHOT_ALLOC_SWAP_PAGE allocate a swap page from the resume partition