[v2,26/27] locking/atomic: docs: Add atomic operations to the driver basic API documentation
Message ID | 20230605070124.3741859-27-mark.rutland@arm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2500783vqr; Mon, 5 Jun 2023 00:11:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xXaq4qjswXsPBwFNc4DnIZuBu5ABRawIWV1tjzcShOWUvjIurqlLRDtkHOrd3mCZCFF+a X-Received: by 2002:a17:90a:7e94:b0:253:6e6f:f5c5 with SMTP id j20-20020a17090a7e9400b002536e6ff5c5mr7877891pjl.7.1685949080263; Mon, 05 Jun 2023 00:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685949080; cv=none; d=google.com; s=arc-20160816; b=Y/CbbLzamIu5+iyoD0ey3ZrY/JK8ymNf6CUAF3a4p17Fbj54eM2qr4FnCgfnd0zPgQ qxOqiDiGFIKD6J8nODF/VjI2ACjGuViptji1eA9Wl8DfcJhRd1oGBxhvDeSqYVS7AEoA Z6a4EZed7EZKmnFIuJsDt88Aa/AC7+TzHNUgAPjIws8SWdLGGKdl2Sc5opyYZu/sNZyl QKXDfqp987vUaICBkzZikqvkkWBWSZkaeeZikFqZGqxSZRTjKZfSppt3fH4OFHS66T7v R0Ak1rZJjl9qbDqNeDStkBJSk84/9DeOXN9Y7VaJ6ArTqDe4RIcjX07sLqvYWf7Sx7HG VJkg== 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; bh=7+junzn/3qiqrSBTSJCmpRhohHV5HR4IC5AQxkWrHWI=; b=YnbwPLGLm6oc4a4AI0zZQZrEnB2jUPPjZ4TFzZVIVMuiwbouYsxOIcma+7ZcD1sMbg 9cbqZ38v1RwAG0SFw6M58EzdpCrQULQ3DgdWZ8t/5Z7toVY9HHt8z3lcIxNlG0yOI45u R8WydG3JkBwfBMrdwNiopJxfl24OhwHzND/6bAFZPwFsN5OYX7qV/FD6SE0tD3IvQKek EDe4WJ4t5IoeT41VxXg+JzHZiEt4G0OKj2m+pa3ncIVryCbNmtTvS9ObAuWG6Jrhvui+ 8V7ozz2ix9Ty3FjdcvyDh/bKRNv+YHW3JMlsMHJ7L01L3fFf/O/nWOJbbuUbdjxTo1Cg ScDw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gf13-20020a17090ac7cd00b0025355f85165si5208025pjb.139.2023.06.05.00.11.08; Mon, 05 Jun 2023 00:11:20 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231269AbjFEHEr (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Mon, 5 Jun 2023 03:04:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230219AbjFEHEV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Jun 2023 03:04:21 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1055E171C; Mon, 5 Jun 2023 00:03:39 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C420216F8; Mon, 5 Jun 2023 00:03:28 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7FABE3F793; Mon, 5 Jun 2023 00:02:41 -0700 (PDT) From: Mark Rutland <mark.rutland@arm.com> To: linux-kernel@vger.kernel.org Cc: akiyks@gmail.com, boqun.feng@gmail.com, corbet@lwn.net, keescook@chromium.org, linux@armlinux.org.uk, linux-doc@vger.kernel.org, mark.rutland@arm.com, mchehab@kernel.org, paulmck@kernel.org, peterz@infradead.org, rdunlap@infradead.org, sstabellini@kernel.org, will@kernel.org Subject: [PATCH v2 26/27] locking/atomic: docs: Add atomic operations to the driver basic API documentation Date: Mon, 5 Jun 2023 08:01:23 +0100 Message-Id: <20230605070124.3741859-27-mark.rutland@arm.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230605070124.3741859-1-mark.rutland@arm.com> References: <20230605070124.3741859-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767845742728272112?= X-GMAIL-MSGID: =?utf-8?q?1767845742728272112?= |
Series |
locking/atomic: restructuring + kerneldoc
|
|
Commit Message
Mark Rutland
June 5, 2023, 7:01 a.m. UTC
From: "Paul E. McKenney" <paulmck@kernel.org> Add the generated atomic headers to driver-api/basics.rst in order to provide documentation for the Linux kernel's atomic operations. At the same time, dtop the x86 atomic header, which provides kerneldoc comments for some arch_atomic*_*() operations. The arch_atomic*_*() operations are now purely an implenentation detail of the raw_atomic*_*() ops, and outside of implementing the atomics, code should use the raw_atomic*_*() forms. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> [Mark: add atomic-{instrumented,long}.h, update commit message] Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Kees Cook <keescook@chromium.org> Cc: <linux-doc@vger.kernel.org> Cc: Akira Yokosawa <akiyks@gmail.com> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Will Deacon <will@kernel.org> --- Documentation/driver-api/basics.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Documentation/driver-api/basics.rst b/Documentation/driver-api/basics.rst index 4b4d8e28d3be4..7671b531ba1a8 100644 --- a/Documentation/driver-api/basics.rst +++ b/Documentation/driver-api/basics.rst @@ -84,7 +84,13 @@ Reference counting Atomics ------- -.. kernel-doc:: arch/x86/include/asm/atomic.h +.. kernel-doc:: include/linux/atomic/atomic-instrumented.h + :internal: + +.. kernel-doc:: include/linux/atomic/atomic-arch-fallback.h + :internal: + +.. kernel-doc:: include/linux/atomic/atomic-long.h :internal: Kernel objects manipulation