From nobody Sat Feb 14 02:10:59 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 385EACE79AA for ; Tue, 19 Sep 2023 19:02:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232870AbjISTCl (ORCPT ); Tue, 19 Sep 2023 15:02:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232714AbjISTCd (ORCPT ); Tue, 19 Sep 2023 15:02:33 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9EE5128 for ; Tue, 19 Sep 2023 12:02:22 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-59eb7293017so22482317b3.3 for ; Tue, 19 Sep 2023 12:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695150142; x=1695754942; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=gOdPMAxCjzIvLxf6qfx/KF9XXYtmYZAQcBo4SahEGKQ=; b=1fJ3i6U0CgJ0P8Iemhm3nkJnQEjA+uvmLAt4yMlxiom3Q623ZdK1ISGVaIF2MTYEHZ cxYjxVtG6nMFSLcJNqpvSGSNwidMRCLg+uZidMoiHSUOv8VvHjA6DJaWGVBRTYL2739c MUXP1LgHr/Mbj0u8W8QNqhDY9HOICcpWouCBauXtTgo7bu7lotoLAJG6niCubYMm+4Zu xcz/E2aYBW12KDQMQxWy4MPhtD5GTKDv7f1viQIBAbtu5gYH0oaVUyYKbkhphtDEWdx7 bFCxPGdZpxvdW506J6KZ/VSvkQPFr9r0lxYerovKL27RjtQni4YccyniCz1gMZnm1ijV lDAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695150142; x=1695754942; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gOdPMAxCjzIvLxf6qfx/KF9XXYtmYZAQcBo4SahEGKQ=; b=M9M2chrJ4sdZt2eLCP7x2trSMvcUJ6k36c9wFB/ikR1hOfLQaHM6pvceOJwig6ZJX4 zrZjIvqkz5sLKy1KweEGTM0FGGGSwzhey679gmnlfAWdG1CL0msq1HfS9bHwvVPcnl0E ZufrAu+9wMA/D1XQS0Bk3U4Cul3k7c7GOdbLzmlHNlOFQdvhpA7yTfEFQQihxvwc/YK4 g87SviPIdKREtOefZEK6uIZdJRAx4nRRgKHYj9YzJUmkhhQXNTyPyQReK+G4AoGdr916 J70s2zWLankbj2TYg2JP8eo2cBGD1AWcyU4I3vbThuIXUDj2Nne4hDZxsI1JWcIcMh2Q Be6w== X-Gm-Message-State: AOJu0YzrUbhS6jNiIRt1kBdmMSCfaf7036thHZaxUVQJe2NZGTdayXG5 0CyN7dNtSO3mR++nHBGg7mbXdXHWktiQ9sIJr3/I X-Google-Smtp-Source: AGHT+IFZpuf3puikO1dpMMmRSMwyUPuqXBGQdykRHv7eVlMOCdkUpk8MEbv9YqybcXD2K15AerblJ02c7++wCFD4AnMi X-Received: from axel.svl.corp.google.com ([2620:15c:2a3:200:8f5a:6a6a:cafc:a3ad]) (user=axelrasmussen job=sendgmr) by 2002:a81:b709:0:b0:59b:e669:c944 with SMTP id v9-20020a81b709000000b0059be669c944mr5687ywh.3.1695150142185; Tue, 19 Sep 2023 12:02:22 -0700 (PDT) Date: Tue, 19 Sep 2023 12:02:00 -0700 In-Reply-To: <20230919190206.388896-1-axelrasmussen@google.com> Mime-Version: 1.0 References: <20230919190206.388896-1-axelrasmussen@google.com> X-Mailer: git-send-email 2.42.0.459.ge4e396fd5e-goog Message-ID: <20230919190206.388896-5-axelrasmussen@google.com> Subject: [PATCH 04/10] ioctl_userfaultfd.2: fix a few trivial mistakes From: Axel Rasmussen To: Alejandro Colomar , Peter Xu Cc: linux-man@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Axel Rasmussen Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" - Fix missing paragraph tag. The lack of this tag yielded no blank line in the rendere dpage, which is inconsistent with style elsewhere. - The description of UFFDIO_WRITEPROTECT was a sentence fragment; the last half of the sentence was left out by mistake. Add it in to fix the issue. - move UFFDIO_WRITEPROTECT 'since' to its own line All other ioctls note the kernel version introduced on a separate line from the ioctl name. Update UFFDIO_WRITEPROTECT to match the existing style. Signed-off-by: Axel Rasmussen --- man2/ioctl_userfaultfd.2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index b5281ec4c..339adf8fe 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_userfaultfd.2 @@ -31,6 +31,7 @@ using calls of the form: ioctl(fd, cmd, argp); .EE .in +.PP In the above, .I fd is a file descriptor referring to a userfaultfd object, @@ -351,6 +352,7 @@ operation is supported. .B 1 << _UFFDIO_WRITEPROTECT The .B UFFDIO_WRITEPROTECT +operation is supported. .TP .B 1 << _UFFDIO_ZEROPAGE The @@ -693,7 +695,8 @@ field of the structure was not a multiple of the system page size; or .I len was zero; or the specified range was otherwise invalid. -.SS UFFDIO_WRITEPROTECT (Since Linux 5.7) +.SS UFFDIO_WRITEPROTECT +(Since Linux 5.7.) Write-protect or write-unprotect a userfaultfd-registered memory range registered with mode .BR UFFDIO_REGISTER_MODE_WP . --=20 2.42.0.459.ge4e396fd5e-goog