Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1182499rwb; Tue, 27 Sep 2022 09:25:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wzOrpbhPU+vR9KhrkbOC759nxak6SuLkWlSoNYN9NZoehwTKmBAt2YTAUpLHPlQgiBTHH X-Received: by 2002:a17:906:fd84:b0:730:acee:d067 with SMTP id xa4-20020a170906fd8400b00730aceed067mr23755161ejb.206.1664295950626; Tue, 27 Sep 2022 09:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664295950; cv=none; d=google.com; s=arc-20160816; b=jEPBFkIELy1D4SY6aXbgBXqWPxrzcPAjVUG8tnfh2qdABFXIJ4oDL4z1c1ijrWv2Zu PVONgWeUWDOWjBjfe55ZSbB9yMXWZhKo7cFUxdBmoz92IQcAYm5o35qUBq2tIKMVnwAC 4rVNjLZHa9bKBbtHcDc3UUQ/ToVU61oR/qwFIBY2Y2Mczw8XqR54YPrWyT9JHHZv3+i9 Cv7FD6vQ2CAh71umldRpCUD8PQdZ6jsVb/9kMN22DLzZauy61xFhGU++zkFUvQ/ZSCJq gmZ2gM6lMXulvxz5f6rPJ89YIcfB9dO12evbRCwKh+V9SoWvOJ7xD+aojwx+kzMoXmGj ZNnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=Uq/aOCxVvfG5MiT72IUzEcUWMPEku718na4X3SHiJv4=; b=sz4HjIwqjCKfaXaCB9bB5GLFnuIcLjBqfKb5HhNRcIao2CLWHHUxpafoV63Z5aq7V+ ISlPDM8aSpWOMm6cEZtw5WE1kEGWkM349VI4SmbysDdqUuQYFy2izdKQrGCaeZ+Qhmhs G1YzWRNDfrg899xOorAy7y8u7fXJYmTpSASTd9kb+M6gjVrw71RZJPbhnVf9LYQCfq5y Q5r3LwvEpM9Glr3oc8ceUhbNEE0OgGWnmvcF2N//axJ1vcU60hPRXM5jOQraKVWFzMMT 3fiQ1WZkusgrTrpxZL/pd2EjNCggJ77op1Hvchl/Xmj3EyWawljdfHhwdaIj8is0BQiv Af0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=lAgIYAZ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a056402281300b0043d84f9413dsi2194206ede.604.2022.09.27.09.25.22; Tue, 27 Sep 2022 09:25:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=lAgIYAZ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232892AbiI0QIT (ORCPT + 99 others); Tue, 27 Sep 2022 12:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233059AbiI0QHc (ORCPT ); Tue, 27 Sep 2022 12:07:32 -0400 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB9FA56032; Tue, 27 Sep 2022 09:06:17 -0700 (PDT) Received: from meer.lwn.net (unknown [IPv6:2601:281:8300:73::5f6]) by ms.lwn.net (Postfix) with ESMTPA id CCA5C8B2; Tue, 27 Sep 2022 16:06:16 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net CCA5C8B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1664294777; bh=Uq/aOCxVvfG5MiT72IUzEcUWMPEku718na4X3SHiJv4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lAgIYAZ6PrjRRclwu7LkcB1V3TeNrtyBCgV/Ivc+Z/k3G7G25KY+cybxfHz+DfKNn 32n4b1RLMwkv7Q+WY/3wJuNOmxTIb0nf2OjD8eYb/baSVVryjPe1F7zPDILxpWXdOI RGgpe6IqxGga/2MSdh+S7cAFnayjxZ8s4SU0cntSQoSkMVFxUfFjxc8L5d6O625WNw Ri5ZC1tQUFC9VVUQpwZEsinZ6tpliL7cYysJmIJeDu6r4kh+fOS078Niu8LDrPe5wG gvaj1xOO3NNwh+H89ceZd9bQKINNsqKHZpWCBA9IPQPXrAM++iUq3gUm9S2F2/t6EL gmpQ+8RKfTJwQ== From: Jonathan Corbet To: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Thorsten Leemhuis , Kees Cook , Jani Nikula , Joe Perches , David Vernet , Jonathan Corbet , Jani Nikula Subject: [PATCH v3 6/7] docs: put atomic*.txt and memory-barriers.txt into the core-api book Date: Tue, 27 Sep 2022 10:05:58 -0600 Message-Id: <20220927160559.97154-7-corbet@lwn.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220927160559.97154-1-corbet@lwn.net> References: <20220927160559.97154-1-corbet@lwn.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These files describe part of the core API, but have never been converted to RST due to ... let's say local oppposition. So, create a set of special-purpose wrappers to ..include these files into a separate page so that they can be a part of the htmldocs build. Then link them into the core-api manual and remove them from the "staging" dumping ground. Acked-by: Jani Nikula Signed-off-by: Jonathan Corbet --- Documentation/core-api/index.rst | 3 ++ .../core-api/wrappers/atomic_bitops.rst | 18 ++++++++ Documentation/core-api/wrappers/atomic_t.rst | 19 +++++++++ .../core-api/wrappers/memory-barriers.rst | 18 ++++++++ Documentation/staging/index.rst | 42 ------------------- 5 files changed, 58 insertions(+), 42 deletions(-) create mode 100644 Documentation/core-api/wrappers/atomic_bitops.rst create mode 100644 Documentation/core-api/wrappers/atomic_t.rst create mode 100644 Documentation/core-api/wrappers/memory-barriers.rst diff --git a/Documentation/core-api/index.rst b/Documentation/core-api/index.rst index f5d8e3779fe8..b0e7b4771fff 100644 --- a/Documentation/core-api/index.rst +++ b/Documentation/core-api/index.rst @@ -45,6 +45,8 @@ Library functionality that is used throughout the kernel. this_cpu_ops timekeeping errseq + wrappers/atomic_t + wrappers/atomic_bitops Low level entry and exit ======================== @@ -68,6 +70,7 @@ Documentation/locking/index.rst for more related documentation. local_ops padata ../RCU/index + wrappers/memory-barriers.rst Low-level hardware management ============================= diff --git a/Documentation/core-api/wrappers/atomic_bitops.rst b/Documentation/core-api/wrappers/atomic_bitops.rst new file mode 100644 index 000000000000..bf24e4081a8f --- /dev/null +++ b/Documentation/core-api/wrappers/atomic_bitops.rst @@ -0,0 +1,18 @@ +.. SPDX-License-Identifier: GPL-2.0 + This is a simple wrapper to bring atomic_bitops.txt into the RST world + until such a time as that file can be converted directly. + +============= +Atomic bitops +============= + +.. raw:: latex + + \footnotesize + +.. include:: ../../atomic_bitops.txt + :literal: + +.. raw:: latex + + \normalsize diff --git a/Documentation/core-api/wrappers/atomic_t.rst b/Documentation/core-api/wrappers/atomic_t.rst new file mode 100644 index 000000000000..ed109a964c77 --- /dev/null +++ b/Documentation/core-api/wrappers/atomic_t.rst @@ -0,0 +1,19 @@ +.. SPDX-License-Identifier: GPL-2.0 + This is a simple wrapper to bring atomic_t.txt into the RST world + until such a time as that file can be converted directly. + +============ +Atomic types +============ + +.. raw:: latex + + \footnotesize + +.. include:: ../../atomic_t.txt + :literal: + +.. raw:: latex + + \normalsize + diff --git a/Documentation/core-api/wrappers/memory-barriers.rst b/Documentation/core-api/wrappers/memory-barriers.rst new file mode 100644 index 000000000000..532460b5e3eb --- /dev/null +++ b/Documentation/core-api/wrappers/memory-barriers.rst @@ -0,0 +1,18 @@ +.. SPDX-License-Identifier: GPL-2.0 + This is a simple wrapper to bring memory-barriers.txt into the RST world + until such a time as that file can be converted directly. + +============================ +Linux kernel memory barriers +============================ + +.. raw:: latex + + \footnotesize + +.. include:: ../../memory-barriers.txt + :literal: + +.. raw:: latex + + \normalsize diff --git a/Documentation/staging/index.rst b/Documentation/staging/index.rst index abd0d18254d2..ded8254bc0d7 100644 --- a/Documentation/staging/index.rst +++ b/Documentation/staging/index.rst @@ -14,45 +14,3 @@ Unsorted Documentation static-keys tee xz - -Atomic Types -============ - -.. raw:: latex - - \footnotesize - -.. include:: ../atomic_t.txt - :literal: - -.. raw:: latex - - \normalsize - -Atomic bitops -============= - -.. raw:: latex - - \footnotesize - -.. include:: ../atomic_bitops.txt - :literal: - -.. raw:: latex - - \normalsize - -Memory Barriers -=============== - -.. raw:: latex - - \footnotesize - -.. include:: ../memory-barriers.txt - :literal: - -.. raw:: latex - - \normalsize -- 2.37.2