From patchwork Mon Jul 4 12:25:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905258 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 4EE67C43334 for ; Mon, 4 Jul 2022 12:26:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232796AbiGDM0V (ORCPT ); Mon, 4 Jul 2022 08:26:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbiGDM0U (ORCPT ); Mon, 4 Jul 2022 08:26:20 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7E60B869; Mon, 4 Jul 2022 05:26:19 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id fd6so11501687edb.5; Mon, 04 Jul 2022 05:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qrkTtNr9vkVoaS0GaHbwE3GT2+MGnjzP/retpDU/T28=; b=EJQs5W09F2VyAW/8CuPhKvtgGsrETDObNB0HTNw4CdQhIxVJtJ/LKQ8PJcBSasHT0i d9SAN8cc8CZvvaJEdz5oyoXkFSgsy45LWnNHCTB1rRA4Ju5pTKFvQsQfILLGEr6Ezg8n K9ZA2Mb8bhb7OfU3488yuA+lOWZSvl2dlhuxdfO1+dhwyb9zT8mfaxAJhzqSm11YWqBI EKJJ60gtbJvp0SCX807S6j9EJ8a1dEDzcBOjtHJJpX11crs5QAZZjQG4EQgFh6YMXf+b BTs4hMyhyo8W74T8ysGgc3yCtEFmub0B9mzrFXIrHgajotxtquUPclolTtIJn8k8Ze7m 1D3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qrkTtNr9vkVoaS0GaHbwE3GT2+MGnjzP/retpDU/T28=; b=rLC99yfwbe7o4aLenw+MxxItT+brAuTkYztK//wXsayaK/XXHtAiq2wy50dTPOTqJZ yDJYjq1WTv7ugQKRy2Kd4HJIM9lDhg9Hlx612VqH53svHfxnht63XnbFLdtiPtqgabxz rH5nzjuqeGG6BSwKr7nOg4nWlzAXq8wR+FaOzof6UAfAEe4ZIP7Tg4qxCLcwlQ1QgrSJ mD/5xbL8tVP72+/HxFu9UsDNXhXvTClevN7wCXIvToRQNFY5pDAU/quI820zQSgLJ60M htjV2kxhGisxUE2BBi3lPzYa6gztkH0mRkQQC9q0E32UtUjl2gpu79B4yvsOpSc0d8n2 3lTA== X-Gm-Message-State: AJIora+nmjtBv8WFrcul+eHC0DPiMyFO2KBnukuXjRdcXnIQJx7lMrwC Ev88FYaTF3RMDcvNToII/4Y= X-Google-Smtp-Source: AGRyM1u70NVrsGujVJqJeKk7rgKI1Etf7AVQXQQoRYPh8Nm9CdcP8zajnvGdRh+8bvhjKfTz24NyOQ== X-Received: by 2002:aa7:cd66:0:b0:435:74d5:2d58 with SMTP id ca6-20020aa7cd66000000b0043574d52d58mr39153512edb.34.1656937578326; Mon, 04 Jul 2022 05:26:18 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:17 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 01/11] docs: kernel-docs: order reference from newest to oldest Date: Mon, 4 Jul 2022 14:25:27 +0200 Message-Id: <20220704122537.3407-2-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org The documents on each section of this document are ordered by its published date, from the newest to the oldest. In the kernel-docs.rst, the references on each section of this document are intended to be ordered by its published date, from the newest to the oldest. The Linux Kernel Module Programming Guide was published in 2021; so, it is placed at the top as the most recent publication after the rolling-version "Linux Kernel Mailing List Glossary" reference. Fixes: 630c8fa02f9a ("Documentation: Update details of The Linux Kernel Module Programming Guide") Signed-off-by: Lukas Bulwahn --- Documentation/process/kernel-docs.rst | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Documentation/process/kernel-docs.rst b/Documentation/process/kernel-docs.rst index da9527502ef0..b4d98f6f797a 100644 --- a/Documentation/process/kernel-docs.rst +++ b/Documentation/process/kernel-docs.rst @@ -83,6 +83,18 @@ On-line docs Finally this trace-log is used as base for more a exact conceptual exploration and description of the Linux TCP/IP implementation.* + * Title: **The Linux Kernel Module Programming Guide** + + :Author: Peter Jay Salzman, Michael Burian, Ori Pomerantz, Bob Mottram, + Jim Huang. + :URL: https://sysprog21.github.io/lkmpg/ + :Date: 2021 + :Keywords: modules, GPL book, /proc, ioctls, system calls, + interrupt handlers . + :Description: A very nice GPL book on the topic of modules + programming. Lots of examples. Currently the new version is being + actively maintained at https://github.com/sysprog21/lkmpg. + * Title: **On submitting kernel Patches** :Author: Andi Kleen @@ -126,18 +138,6 @@ On-line docs describes how to write user-mode utilities for communicating with Card Services. - * Title: **The Linux Kernel Module Programming Guide** - - :Author: Peter Jay Salzman, Michael Burian, Ori Pomerantz, Bob Mottram, - Jim Huang. - :URL: https://sysprog21.github.io/lkmpg/ - :Date: 2021 - :Keywords: modules, GPL book, /proc, ioctls, system calls, - interrupt handlers . - :Description: A very nice GPL book on the topic of modules - programming. Lots of examples. Currently the new version is being - actively maintained at https://github.com/sysprog21/lkmpg. - * Title: **Global spinlock list and usage** :Author: Rick Lindsley. From patchwork Mon Jul 4 12:25:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905259 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 305D9CCA479 for ; Mon, 4 Jul 2022 12:26:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233240AbiGDM01 (ORCPT ); Mon, 4 Jul 2022 08:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233204AbiGDM0W (ORCPT ); Mon, 4 Jul 2022 08:26:22 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69B4BDE92; Mon, 4 Jul 2022 05:26:21 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id e40so11527950eda.2; Mon, 04 Jul 2022 05:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DY+/m7obP8UoyHTog4hmSkoKGfbosiA+zpN6o9lOpYE=; b=WeM1vFIznTI1Nc+w5zhuICGwUZuvLOXu8aaVvMhn0bEofMRWxEv75rdE/As02cOZ+z IuX4zfYw2wHqq0ruBf4XgGvW1KmkBPOHniwAHsqrok/PHwQNA7OS2haOgvQ3M1BIKqiT vbN5DJzLUJFFnPNyx15fBLn0BqkMS3D7zjg8f+4TCiZGsKObgRxe8y8BuEUHxegGvknP mjp+OK/8o8loCgYRF6ptUi+ncfjHqTUvnIteQWufFAFU9KIt+lWq+Vru9CZl175m3I4o Dd88E+KCVi51vuY1NMnB+mgEMUsVOpJV+KZzUy9Iz7p+rgm2LMD/G8e+nyv0NggleTTv SneA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DY+/m7obP8UoyHTog4hmSkoKGfbosiA+zpN6o9lOpYE=; b=gb3TXTaqVWz+OWL8R1csTAEmOuheUKjOeA6LelK5pdfyrwhBWDsX6Nbh63mJ7X38XG JKpdQROiEusOZwWdPdTfFwqbq5mtsIDI11ltEcUzbLjwr2i3ydsWqVlMP7XJhX/jIcka bF42FRo1NNowwWJovBrXkAYXoHpheK+ihzDDN1q8JcAGFfNtyJKH7ym/+fa+pL6HfBst APUyQpPZGI2WSlGa3Z/11cN3tSqWC6xAjjpwgRgmwIBun5MDB1ke2xltuf+gb6XMbT3s DEJ3alLW7fJnq88b0MW0pZ9gY9isSdSGDbnMCfBFJL7375X2d4JPh/PO5HbqgVTw9Ezz nTTQ== X-Gm-Message-State: AJIora8y1ES6YJxVarjVSB9v5EfStStPhUKV/xm7kjrW1BkeTw7ObhOa NvRMyLNgUl5Nbw6UuN5cc+I= X-Google-Smtp-Source: AGRyM1vMkC6Vsp1NBP+dNVVCBBdbRhZK7BhHC723SWgdxcl4a1IbxXo1b75aGt2VjxbXfABtqnWqVw== X-Received: by 2002:a05:6402:2684:b0:435:dcaf:29b3 with SMTP id w4-20020a056402268400b00435dcaf29b3mr39166967edd.358.1656937579991; Mon, 04 Jul 2022 05:26:19 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:19 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 02/11] docs: kernel-docs: shorten the lengthy doc title Date: Mon, 4 Jul 2022 14:25:28 +0200 Message-Id: <20220704122537.3407-3-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org The original title comes from copying the content from a web page that covered various mixed computer-science material. Within the kernel documentation and its current structure, the title can be shortened. Other titles considered, but not selected were: - Index of More Kernel Documentation - Further Kernel Documentation - References to Further Kernel Documentation Shorten the title. Signed-off-by: Lukas Bulwahn --- Documentation/process/kernel-docs.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/process/kernel-docs.rst b/Documentation/process/kernel-docs.rst index b4d98f6f797a..5d6fa71895cc 100644 --- a/Documentation/process/kernel-docs.rst +++ b/Documentation/process/kernel-docs.rst @@ -1,7 +1,7 @@ .. _kernel_docs: -Index of Documentation for People Interested in Writing and/or Understanding the Linux Kernel -============================================================================================= +Index of Further Kernel Documentation +===================================== Juan-Mariano de Goyeneche From patchwork Mon Jul 4 12:25:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905260 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 605D7C43334 for ; Mon, 4 Jul 2022 12:26:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233467AbiGDM0i (ORCPT ); Mon, 4 Jul 2022 08:26:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233508AbiGDM0Z (ORCPT ); Mon, 4 Jul 2022 08:26:25 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73032DED2; Mon, 4 Jul 2022 05:26:23 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id eq6so11486362edb.6; Mon, 04 Jul 2022 05:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hFmbK8M11XjJzoVFfZwjfb4w2B8a5R3YTDT8W3rNvcQ=; b=NlM/eU/CVXn5P0ezkZ5e677LBsMWNiIZ/jO8GRRSJUvGIB7Gcb+3WwXsLlr4QJw+Wi YYk6jkKLB6yTgPu1sR91RJ6KS2VV3sZJ5fbWK1SRKFB+Blbs81Pq1L5OrZvluIT9Vkjv 4P8EyTF9942ejrxh/9ZblJqbBHBCNti0fI1ANJ+L1FHvTU7rnVjGJkRmtFxjp439lmGd +bgD0ObQZN7H/1Mga2a4dPR0dG3Mvs2ecxxIAl3vkb2U2XoP8USqm73avC5bWKOhAKqB 1BEBulv3Vh29BETHCQwHUuVLBcYADS7MVJCu4SOJgh0UF0rB3RWh6zapkQ5zpeYBZpLl F61A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hFmbK8M11XjJzoVFfZwjfb4w2B8a5R3YTDT8W3rNvcQ=; b=atkItDwCC7u7Y8Kwd/oISj55XsFZtcl4NUaY0hQtXT4AnYIsJQzK59n3LExHWl5KQE Rg6Xf/oswpYGDoCJ++LCElOuJT6gqxVFIbm4/eeKvMo52rcwkxi4e4pVUXZu0GuM7ztN mlArj2CVJr9mP0BJ7CWno3IxLeHkMUh5rCiBerKJ5tc7ueaydD/PgEyWwM8fciYI/Pdl qTwf8NxOkXieIKscZ9jSpXyB6iI+RWe3+TYWy4OnO04OCJmy6GYlKofw8rjDHv2RArwa 7WUtSPMo7H4xtjYzs/q+5b9SoXnH8IufRpFHaoba8W0z35gss6xuqbDU/A65uTw8pm4U 1S1g== X-Gm-Message-State: AJIora9TUqRQ+3reefVFoa9h9OL7cJm9yK+JqjPU/hDgAR6cNoS4753B 9kU6+RVFbffuxgzwTCUC0hA= X-Google-Smtp-Source: AGRyM1vrdJAUgasWOJCitvIq8KSyqbsx9MqUpTvE2e6JCRW0Rx5SwhMRixS1qRElY4PUBEA42Vnw6A== X-Received: by 2002:aa7:cf08:0:b0:43a:6d32:f71d with SMTP id a8-20020aa7cf08000000b0043a6d32f71dmr3183320edy.192.1656937581504; Mon, 04 Jul 2022 05:26:21 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:21 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 03/11] docs: kernel-docs: reflect that it is community-maintained Date: Mon, 4 Jul 2022 14:25:29 +0200 Message-Id: <20220704122537.3407-4-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Remove and rephrase statements that only make sense if a single author exclusively would maintain this document, but we would really want to consider this being a page maintained by the kernel community, as it is placed in the kernel repository, and let us hope that more contributors suggest some more documents. Further, do some minor word-smithing. Signed-off-by: Lukas Bulwahn --- Documentation/process/kernel-docs.rst | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/Documentation/process/kernel-docs.rst b/Documentation/process/kernel-docs.rst index 5d6fa71895cc..b2523267ffc7 100644 --- a/Documentation/process/kernel-docs.rst +++ b/Documentation/process/kernel-docs.rst @@ -3,7 +3,8 @@ Index of Further Kernel Documentation ===================================== - Juan-Mariano de Goyeneche +Initial Author: Juan-Mariano de Goyeneche (; +email address is defunct now.) The need for a document like this one became apparent in the linux-kernel mailing list as the same questions, asking for pointers @@ -16,21 +17,16 @@ philosophy and design decisions behind this code. Unfortunately, not many documents are available for beginners to start. And, even if they exist, there was no "well-known" place which -kept track of them. These lines try to cover this lack. All documents -available on line known by the author are listed, while some reference -books are also mentioned. +kept track of them. These lines try to cover this lack. PLEASE, if you know any paper not listed here or write a new document, -send me an e-mail, and I'll include a reference to it here. Any -corrections, ideas or comments are also welcomed. +include a reference to it here, following the kernel's patch submission +process. Any corrections, ideas or comments are also welcome. -The papers that follow are listed in no particular order. All are -cataloged with the following fields: the document's "Title", the -"Author"/s, the "URL" where they can be found, some "Keywords" helpful -when searching for specific topics, and a brief "Description" of the -Document. - -Enjoy! +All documents are cataloged with the following fields: the document's +"Title", the "Author"/s, the "URL" where they can be found, some +"Keywords" helpful when searching for specific topics, and a brief +"Description" of the Document. .. note:: From patchwork Mon Jul 4 12:25:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905261 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 C22DCC43334 for ; Mon, 4 Jul 2022 12:26:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234294AbiGDM0q (ORCPT ); Mon, 4 Jul 2022 08:26:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234041AbiGDM0h (ORCPT ); Mon, 4 Jul 2022 08:26:37 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8374FDF12; Mon, 4 Jul 2022 05:26:24 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id dn9so11190171ejc.7; Mon, 04 Jul 2022 05:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=y9fLCoDjX9rrrX0oj8XNyUYP/ZsreaQRf2qQi5uPknQ=; b=DRqfY6JbMfATouOPsUSQNEfx9Kyw4a43y9Du5iP5hmsEZ0wfcAURzG7iGGTHbc4M9y DoTRKPCdktO9x/jkN3XSnm3lVxnmWtD4vikqQlJsiLqkiIwurhyG+xorC4GOpYFZ7fDi WoyvjPrEB8vU0VxGrDARk93NSRS3xdgQ11DHGdehpmc4oRGgoEVukL9K+CpIJko5WANI GD/7mQJcjgKIh0QKkrFEFuDOViaJeJaaYu81XfLTzl4NtE0c/ksjcBTpqeJvNDClDPJD pdgUft/y2y8lLMB6foakioE158pIwXvPIWi7GR1mkbGMWoxMTVC3fk1A917ReCXx1Qsh 2mUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=y9fLCoDjX9rrrX0oj8XNyUYP/ZsreaQRf2qQi5uPknQ=; b=Xbwy3u6e/SeyzbP0S7gl8zjgdjQAb865fGRitFNUOEseGqmKW6/Zrn3IsbY26IfNMX Mrgw5pgOoGBs/161RXVePumCH3DY1Uhyvfbds8Q+pT2pHtaZseH9WCW/AnEAx3co9gTy cZ8jifFa4PSOFgZJlXOomJcjP3qga/hCPn+X5yVI4Ohm8RsSW+sLUmPFy3KtN5o0+h8g xkf9k/wZSfiYHuVp3Ja9YCUMbwRGPQ8C1PZozwrBQ+0SCyF4a8t+ddWdbhrmUDk7cliO dQnoMfyy4dugl08I/mNKZ9hejLHyig60Z4dPGe0F5yrmko3aNaWUVNtW0s/5rp1nz1Df AVIQ== X-Gm-Message-State: AJIora8RDNSXSnDmVw6S6j9Y2U9WbMfRzVPRaJyhFcZk5WVmi+pYY6In UFzVlKF/zQehQKpagff6gyU= X-Google-Smtp-Source: AGRyM1sBsBxCmp/Zz9ME8e+BnQgqaA7vLFEcrkEnxfIM+oKL0HB2aL8D9yvw2BvCCT5cqqyYhVPorA== X-Received: by 2002:a17:907:7da6:b0:72a:cf40:13e1 with SMTP id oz38-20020a1709077da600b0072acf4013e1mr2183621ejc.343.1656937583068; Mon, 04 Jul 2022 05:26:23 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:22 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 04/11] docs: kernel-docs: add a reference mentioned in submitting-drivers.rst Date: Mon, 4 Jul 2022 14:25:30 +0200 Message-Id: <20220704122537.3407-5-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org One section in submitting-drivers.rst was just a collection of references to other external documentation. All except the one added in this commit is already mentioned in kernel-docs or other places in the kernel documentation. Add Arjan van de Ven's article on How to NOT write kernel driver to this index of further kernel documentation. Signed-off-by: Lukas Bulwahn --- Documentation/process/kernel-docs.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/process/kernel-docs.rst b/Documentation/process/kernel-docs.rst index b2523267ffc7..502289d63385 100644 --- a/Documentation/process/kernel-docs.rst +++ b/Documentation/process/kernel-docs.rst @@ -134,6 +134,20 @@ On-line docs describes how to write user-mode utilities for communicating with Card Services. + * Title: **How NOT to write kernel drivers** + + :Author: Arjan van de Ven. + :URL: https://landley.net/kdocs/ols/2002/ols2002-pages-545-555.pdf + :Date: 2002 + :Keywords: driver. + :Description: Programming bugs and Do-nots in kernel driver development + :Abstract: *Quit a few tutorials, articles and books give an introduction + on how to write Linux kernel drivers. Unfortunately the things one + should NOT do in Linux kernel code is either only a minor appendix + or, more commonly, completely absent. This paper tries to briefly touch + the areas in which the most common and serious bugs and do-nots are + encountered.* + * Title: **Global spinlock list and usage** :Author: Rick Lindsley. From patchwork Mon Jul 4 12:25:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905262 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 11957CCA47C for ; Mon, 4 Jul 2022 12:26:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233451AbiGDM0r (ORCPT ); Mon, 4 Jul 2022 08:26:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233204AbiGDM0i (ORCPT ); Mon, 4 Jul 2022 08:26:38 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38AC3B869; Mon, 4 Jul 2022 05:26:26 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id h23so16405357ejj.12; Mon, 04 Jul 2022 05:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iUi8PRt1C1hxriDLpqIJwYgJ7+Ti+qx1RIsoZc3JWOw=; b=k7h1y9DFvCYtbl838KmZYkRLDF4P3wrqASacRmFN7wLT6VuAyih+r3kPwVDOm/tSRZ VFr9CHKCY9l31YAr/NnTOfpGOHTBJBSSdSi2D1biUXLG+80TT0qA+HHpcy71rJ/CDUXd hYxuxyOeQayXYNWFQNIyv0Q94zQCA3uFbTJD+7rCyuuHFkhaPx02Q4Nv5LhZL7Pq7YGF jJMUkg2gnDVWQgjlcwM18wG2SsuTVrBtOV+bgmLxDpo9yYU27OSNHMq7tY/9fVimsIFE klIulxxrR48XSRI7GpTU2Arx+EUUVdsemN6lKZlpvY3u0/ziJdXqrYoIfjuXjCFzDQ/o lY1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iUi8PRt1C1hxriDLpqIJwYgJ7+Ti+qx1RIsoZc3JWOw=; b=KJyEXJwydOoUI25ZSdh4tWRaYMw+Xzj2zAXl6BDQm+UuCe7t3rRIhyQmrtpZH+p0lp u4W6nLiLjvx8x8aPVI1TZODDzhuQUut9NoJkklvyVmEOECakRY+CIJDgOQfI0qxhBSyR F93Ica69P33/2iubZAuTbHtYHXmNJyGEUo0dlN8RfIlwMlVv3zmmyM+fXDUd7nUnrorU 7wOwttjmYwjAqv35xJkApfevzL2FZu8GlC7Mdt8jBi8N23PwcVMiOHxlKTKv1AG+ErIz UUvv8VzcGAJqSOYsOvJnBTKa2Rf8LSpA1Q2T4kQJMeuPLmnmk5wWAOktKpuA+686fI44 8laQ== X-Gm-Message-State: AJIora807MnYw4SXGsOb4jVq3GPCbxv8zCyZaozvUJSEy+y3Tyyr4Rfr tQrJziFwrySoOj0v13oBxII= X-Google-Smtp-Source: AGRyM1vfM9ua5WMQ5qdJPmRfUcid1CgMVYbqO7UK+/qO8DHUYblHW0vJPzb7rBIiHZz9oW1oogyV5Q== X-Received: by 2002:a17:906:4985:b0:727:c6ac:5b31 with SMTP id p5-20020a170906498500b00727c6ac5b31mr28160841eju.501.1656937584678; Mon, 04 Jul 2022 05:26:24 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:24 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 05/11] docs: admin: devices: drop confusing outdated statement on Latex Date: Mon, 4 Jul 2022 14:25:31 +0200 Message-Id: <20220704122537.3407-6-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org The statement that the Latex version of Linux Device List is unmaintained, must go back to some historic time where there were actually two separate document sources, one in a txt format and another in a tex format (maybe even just on lanana.org). Nowadays, html and tex are generated from the ReST document file and the statement might be confused, believing the actual generated LaTeX document from the maintained ReST document could be an unmaintained one. Remove this statement on the LaTeX version and only keep pointing out that the version on lanana.org is no longer maintained. Signed-off-by: Lukas Bulwahn --- Documentation/admin-guide/devices.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Documentation/admin-guide/devices.rst b/Documentation/admin-guide/devices.rst index 035275fedbdd..e3776d77374b 100644 --- a/Documentation/admin-guide/devices.rst +++ b/Documentation/admin-guide/devices.rst @@ -7,10 +7,9 @@ This list is the Linux Device List, the official registry of allocated device numbers and ``/dev`` directory nodes for the Linux operating system. -The LaTeX version of this document is no longer maintained, nor is -the document that used to reside at lanana.org. This version in the -mainline Linux kernel is the master document. Updates shall be sent -as patches to the kernel maintainers (see the +The version of this document at lanana.org is no longer maintained. This +version in the mainline Linux kernel is the master document. Updates +shall be sent as patches to the kernel maintainers (see the :ref:`Documentation/process/submitting-patches.rst ` document). Specifically explore the sections titled "CHAR and MISC DRIVERS", and "BLOCK LAYER" in the MAINTAINERS file to find the right maintainers From patchwork Mon Jul 4 12:25:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905263 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 EEC6CCCA47C for ; Mon, 4 Jul 2022 12:26:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234410AbiGDM0w (ORCPT ); Mon, 4 Jul 2022 08:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234136AbiGDM0o (ORCPT ); Mon, 4 Jul 2022 08:26:44 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C622DF7B; Mon, 4 Jul 2022 05:26:28 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id n8so11567999eda.0; Mon, 04 Jul 2022 05:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6OtORRyOM1wDPu65v8Us4BfcsokvyRp/mcgiSXtNDto=; b=VK/ocAyL42EdpqZeVEj3eUx0J8Lply9fhbCFHpLMXrBwC7/ZvhPcp46eAuAilvvyMj ebSLNgxwU6eXc+7DcLa9+654hwdsk62VvzvXMQxyFyu6LcB7BfeOo6vuSPtn1IZBBrtY gPv280h2X/6fcGCpBcZdm4VpK0vgv3dgI0oUWvlhLigIcVVBQnbjDyW8zNgIK1I99bik 0QNDy7EEbFme+X2O+RyHbRwBo/PIjiztzw8cRLfjMAFzQEu9fTY/9JI2YNw44D6bgwBd nLEqZvufPJTLLpEcGXy++VmqfqEzZ2MAJmg5u54Y5lbHAASUqA4Ii7wqTWk2i9/qU1dZ 7wtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6OtORRyOM1wDPu65v8Us4BfcsokvyRp/mcgiSXtNDto=; b=BhCklwvUgL/S+jjEOZF7i0zRSVB7JGcxnK57OLbJQdd1O6x4u0Gq7veh2UNvUPXdSU Sa3css3MsBtcdv6Zvys8N7pzT5aznmvkq36d7ZD+PiikAQM47LMp1Sy3hkveShXRY72W 2ZOUx5MqM99jgtvI0T3GrGHaQYYkhWE8vn8gzGDVy4GwFnwLatPEn4iOttkdVBBjLfCI FjsJAYU2+bfYvzCPoKlc+jqbKuvbLCb5sg9hgjXBya9pBuCAp8kuV+qiILHfe3M0e4im YOMb8oZ1cPlLF8k1HWGpJVonD/4uM/peU9CUEL/AdKfDSqDvpNTZXx1g/Zt7zTVBQqlC BDRQ== X-Gm-Message-State: AJIora9gRL2eEK7UI9nLB8EvdbE4tiOA2tWNnDhkReUpz7wcijLxmd0W V6CFlt9k7grpTAliwEy/6N0= X-Google-Smtp-Source: AGRyM1tXnfqqTxvjz1s1pU/jCuO4LNSTwIpWd7Lvm2z+ev4LCOm+akfHBODIF60s4AHgYaAe/1wlDQ== X-Received: by 2002:aa7:de88:0:b0:435:9a54:168a with SMTP id j8-20020aa7de88000000b004359a54168amr37644993edv.73.1656937586725; Mon, 04 Jul 2022 05:26:26 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:26 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 06/11] docs: process: remove outdated submitting-drivers.rst Date: Mon, 4 Jul 2022 14:25:32 +0200 Message-Id: <20220704122537.3407-7-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Commit 31b24bee3357 ("docs: add a warning to submitting-drivers.rst") in October 2016 already warns "This (...) should maybe just be deleted, but I'm not quite ready to do that yet". Maybe, six years ago, we were not ready but let us remove old content for the better now and structure and maintain less content in the kernel documentation with a better result. Drop this already outdated document and adjust all textual references. Here is an argument why deleting the content will not remove any useful information to the existing kernel documentation, individually broken down for each section. Section "Allocating Device Numbers" refers to https://www.lanana.org/, and then refers to Documentation/admin-guide/devices.rst. However, the devices.rst clearly states: "The version of this document at lanana.org is no longer maintained." Everything needed for submitting drivers is already stated in devices.rst and the reference to https://www.lanana.org/ is outdated, and should be just deleted. Section "Who To Submit Drivers To" is all about Linux 2.0 - 2.6, before the new release version scheme; the mentioned developers are still around, but actually not the first developers to contact anymore. Section "What Criteria Determine Acceptance" has a few bullet points: Licensing and Copyright is well-covered in process/kernel-license.rst. Interfaces, Code, Portability, Clarity state some obvious things about ensuring kernel code quality. Control suggests to add a MAINTAINERS entry, which is already mentioned in 6.Followthrough.rst: "... added yourself to the MAINTAINERS file..." PM support states a bit about implementing and testing power management of a driver, it remains an open question where to place that in the process documents. Driver developers interested in power management will find the corresponding part on power management in the kernel documentation anyway. In section "What Criteria Do Not Determine Acceptance", the points Vendor and Author states something basic consequence of the kernel being an open-source community software development. Probably no need to mention it nowadays. Section "Resources" lists resources that are also mentioned elsewhere more central. - Linux kernel tree and mailing list is mentioned in many places. - https://lwn.net/Kernel/LDD3/ is mentioned in Documentation/process/kernel-docs.rst. - https://lwn.net/ is mentioned in: - Documentation/process/8.Conclusion.rst - Documentation/process/kernel-docs.rst - https://kernelnewbies.org/ is mentioned in: - Documentation/process/8.Conclusion.rst - Documentation/process/kernel-docs.rst - http://www.linux-usb.org/ is mentioned in Documentation/driver-api/usb/usb.rst - https://landley.net/kdocs/ols/2002/ols2002-pages-545-555.pdf is mentioned in Documentation/process/kernel-docs.rst - https://kernelnewbies.org/KernelJanitors is mentioned in Documentation/process/howto.rst - https://git-scm.com/ is mentioned in - Documentation/process/2.Process.rst - Documentation/process/7.AdvancedTopics.rst - Documentation/process/howto.rst Signed-off-by: Lukas Bulwahn --- Documentation/hwmon/submitting-patches.rst | 1 - Documentation/kernel-hacking/hacking.rst | 3 +- Documentation/process/5.Posting.rst | 3 +- Documentation/process/8.Conclusion.rst | 16 +- Documentation/process/howto.rst | 4 +- Documentation/process/index.rst | 1 - Documentation/process/submitting-drivers.rst | 194 ------------------- Documentation/process/submitting-patches.rst | 5 +- 8 files changed, 13 insertions(+), 214 deletions(-) delete mode 100644 Documentation/process/submitting-drivers.rst diff --git a/Documentation/hwmon/submitting-patches.rst b/Documentation/hwmon/submitting-patches.rst index 9a218ea996d8..d953ee763c96 100644 --- a/Documentation/hwmon/submitting-patches.rst +++ b/Documentation/hwmon/submitting-patches.rst @@ -12,7 +12,6 @@ increase the chances of your change being accepted. * It should be unnecessary to mention, but please read and follow: - Documentation/process/submit-checklist.rst - - Documentation/process/submitting-drivers.rst - Documentation/process/submitting-patches.rst - Documentation/process/coding-style.rst diff --git a/Documentation/kernel-hacking/hacking.rst b/Documentation/kernel-hacking/hacking.rst index ebd9d90882ea..9a1f020c8449 100644 --- a/Documentation/kernel-hacking/hacking.rst +++ b/Documentation/kernel-hacking/hacking.rst @@ -755,8 +755,7 @@ make a neat patch, there's administrative work to be done: it implies a more-than-passing commitment to some part of the code. - Finally, don't forget to read - ``Documentation/process/submitting-patches.rst`` and possibly - ``Documentation/process/submitting-drivers.rst``. + ``Documentation/process/submitting-patches.rst`` Kernel Cantrips =============== diff --git a/Documentation/process/5.Posting.rst b/Documentation/process/5.Posting.rst index bd36ecb29409..906235c11c24 100644 --- a/Documentation/process/5.Posting.rst +++ b/Documentation/process/5.Posting.rst @@ -10,8 +10,7 @@ of conventions and procedures which are used in the posting of patches; following them will make life much easier for everybody involved. This document will attempt to cover these expectations in reasonable detail; more information can also be found in the files -:ref:`Documentation/process/submitting-patches.rst `, -:ref:`Documentation/process/submitting-drivers.rst ` +:ref:`Documentation/process/submitting-patches.rst ` and :ref:`Documentation/process/submit-checklist.rst `. diff --git a/Documentation/process/8.Conclusion.rst b/Documentation/process/8.Conclusion.rst index b32a40215858..8c847dffe76b 100644 --- a/Documentation/process/8.Conclusion.rst +++ b/Documentation/process/8.Conclusion.rst @@ -5,15 +5,13 @@ For more information There are numerous sources of information on Linux kernel development and related topics. First among those will always be the Documentation -directory found in the kernel source distribution. The top-level :ref:`process/howto.rst ` -file is an important starting point; :ref:`process/submitting-patches.rst ` -and :ref:`process/submitting-drivers.rst ` -are also something which all kernel developers should -read. Many internal kernel APIs are documented using the kerneldoc -mechanism; "make htmldocs" or "make pdfdocs" can be used to generate those -documents in HTML or PDF format (though the version of TeX shipped by some -distributions runs into internal limits and fails to process the documents -properly). +directory found in the kernel source distribution. Start with the +top-level :ref:`process/howto.rst `; also read +:ref:`process/submitting-patches.rst `. Many internal +kernel APIs are documented using the kerneldoc mechanism; "make htmldocs" +or "make pdfdocs" can be used to generate those documents in HTML or PDF +format (though the version of TeX shipped by some distributions runs into +internal limits and fails to process the documents properly). Various web sites discuss kernel development at all levels of detail. Your author would like to humbly suggest https://lwn.net/ as a source; diff --git a/Documentation/process/howto.rst b/Documentation/process/howto.rst index e4beeca57e5f..cd6997a9d203 100644 --- a/Documentation/process/howto.rst +++ b/Documentation/process/howto.rst @@ -105,8 +105,8 @@ required reading: patches if these rules are followed, and many people will only review code if it is in the proper style. - :ref:`Documentation/process/submitting-patches.rst ` and :ref:`Documentation/process/submitting-drivers.rst ` - These files describe in explicit detail how to successfully create + :ref:`Documentation/process/submitting-patches.rst ` + This file describes in explicit detail how to successfully create and send a patch, including (but not limited to): - Email contents diff --git a/Documentation/process/index.rst b/Documentation/process/index.rst index 3587dae4d0ef..2ba2a1582bbe 100644 --- a/Documentation/process/index.rst +++ b/Documentation/process/index.rst @@ -40,7 +40,6 @@ Other guides to the community that are of interest to most developers are: :maxdepth: 1 changes - submitting-drivers stable-api-nonsense management-style stable-kernel-rules diff --git a/Documentation/process/submitting-drivers.rst b/Documentation/process/submitting-drivers.rst deleted file mode 100644 index 8413b693d10d..000000000000 --- a/Documentation/process/submitting-drivers.rst +++ /dev/null @@ -1,194 +0,0 @@ -.. _submittingdrivers: - -Submitting Drivers For The Linux Kernel -======================================= - -This document is intended to explain how to submit device drivers to the -various kernel trees. Note that if you are interested in video card drivers -you should probably talk to XFree86 (https://www.xfree86.org/) and/or X.Org -(https://x.org/) instead. - -.. note:: - - This document is old and has seen little maintenance in recent years; it - should probably be updated or, perhaps better, just deleted. Most of - what is here can be found in the other development documents anyway. - - Oh, and we don't really recommend submitting changes to XFree86 :) - -Also read the :ref:`Documentation/process/submitting-patches.rst ` -document. - - -Allocating Device Numbers -------------------------- - -Major and minor numbers for block and character devices are allocated -by the Linux assigned name and number authority (currently this is -Torben Mathiasen). The site is https://www.lanana.org/. This -also deals with allocating numbers for devices that are not going to -be submitted to the mainstream kernel. -See :ref:`Documentation/admin-guide/devices.rst ` -for more information on this. - -If you don't use assigned numbers then when your device is submitted it will -be given an assigned number even if that is different from values you may -have shipped to customers before. - -Who To Submit Drivers To ------------------------- - -Linux 2.0: - No new drivers are accepted for this kernel tree. - -Linux 2.2: - No new drivers are accepted for this kernel tree. - -Linux 2.4: - If the code area has a general maintainer then please submit it to - the maintainer listed in MAINTAINERS in the kernel file. If the - maintainer does not respond or you cannot find the appropriate - maintainer then please contact Willy Tarreau . - -Linux 2.6 and upper: - The same rules apply as 2.4 except that you should follow linux-kernel - to track changes in API's. The final contact point for Linux 2.6+ - submissions is Andrew Morton. - -What Criteria Determine Acceptance ----------------------------------- - -Licensing: - The code must be released to us under the - GNU General Public License. If you wish the driver to be - useful to other communities such as BSD you may release - under multiple licenses. If you choose to release under - licenses other than the GPL, you should include your - rationale for your license choices in your cover letter. - See accepted licenses at include/linux/module.h - -Copyright: - The copyright owner must agree to use of GPL. - It's best if the submitter and copyright owner - are the same person/entity. If not, the name of - the person/entity authorizing use of GPL should be - listed in case it's necessary to verify the will of - the copyright owner. - -Interfaces: - If your driver uses existing interfaces and behaves like - other drivers in the same class it will be much more likely - to be accepted than if it invents gratuitous new ones. - If you need to implement a common API over Linux and NT - drivers do it in userspace. - -Code: - Please use the Linux style of code formatting as documented - in :ref:`Documentation/process/coding-style.rst `. - If you have sections of code - that need to be in other formats, for example because they - are shared with a windows driver kit and you want to - maintain them just once separate them out nicely and note - this fact. - -Portability: - Pointers are not always 32bits, not all computers are little - endian, people do not all have floating point and you - shouldn't use inline x86 assembler in your driver without - careful thought. Pure x86 drivers generally are not popular. - If you only have x86 hardware it is hard to test portability - but it is easy to make sure the code can easily be made - portable. - -Clarity: - It helps if anyone can see how to fix the driver. It helps - you because you get patches not bug reports. If you submit a - driver that intentionally obfuscates how the hardware works - it will go in the bitbucket. - -PM support: - Since Linux is used on many portable and desktop systems, your - driver is likely to be used on such a system and therefore it - should support basic power management by implementing, if - necessary, the .suspend and .resume methods used during the - system-wide suspend and resume transitions. You should verify - that your driver correctly handles the suspend and resume, but - if you are unable to ensure that, please at least define the - .suspend method returning the -ENOSYS ("Function not - implemented") error. You should also try to make sure that your - driver uses as little power as possible when it's not doing - anything. For the driver testing instructions see - Documentation/power/drivers-testing.rst and for a relatively - complete overview of the power management issues related to - drivers see :ref:`Documentation/driver-api/pm/devices.rst `. - -Control: - In general if there is active maintenance of a driver by - the author then patches will be redirected to them unless - they are totally obvious and without need of checking. - If you want to be the contact and update point for the - driver it is a good idea to state this in the comments, - and include an entry in MAINTAINERS for your driver. - -What Criteria Do Not Determine Acceptance ------------------------------------------ - -Vendor: - Being the hardware vendor and maintaining the driver is - often a good thing. If there is a stable working driver from - other people already in the tree don't expect 'we are the - vendor' to get your driver chosen. Ideally work with the - existing driver author to build a single perfect driver. - -Author: - It doesn't matter if a large Linux company wrote the driver, - or you did. Nobody has any special access to the kernel - tree. Anyone who tells you otherwise isn't telling the - whole story. - - -Resources ---------- - -Linux kernel master tree: - ftp.\ *country_code*\ .kernel.org:/pub/linux/kernel/... - - where *country_code* == your country code, such as - **us**, **uk**, **fr**, etc. - - https://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git - -Linux kernel mailing list: - linux-kernel@vger.kernel.org - [mail majordomo@vger.kernel.org to subscribe] - -Linux Device Drivers, Third Edition (covers 2.6.10): - https://lwn.net/Kernel/LDD3/ (free version) - -LWN.net: - Weekly summary of kernel development activity - https://lwn.net/ - - 2.6 API changes: - - https://lwn.net/Articles/2.6-kernel-api/ - - Porting drivers from prior kernels to 2.6: - - https://lwn.net/Articles/driver-porting/ - -KernelNewbies: - Documentation and assistance for new kernel programmers - - https://kernelnewbies.org/ - -Linux USB project: - http://www.linux-usb.org/ - -How to NOT write kernel driver by Arjan van de Ven: - https://landley.net/kdocs/ols/2002/ols2002-pages-545-555.pdf - -Kernel Janitor: - https://kernelnewbies.org/KernelJanitors - -GIT, Fast Version Control System: - https://git-scm.com/ diff --git a/Documentation/process/submitting-patches.rst b/Documentation/process/submitting-patches.rst index a1cb6280fbcf..be49d8f2601b 100644 --- a/Documentation/process/submitting-patches.rst +++ b/Documentation/process/submitting-patches.rst @@ -12,9 +12,8 @@ This document contains a large number of suggestions in a relatively terse format. For detailed information on how the kernel development process works, see Documentation/process/development-process.rst. Also, read Documentation/process/submit-checklist.rst -for a list of items to check before submitting code. If you are submitting -a driver, also read Documentation/process/submitting-drivers.rst; for device -tree binding patches, read +for a list of items to check before submitting code. +For device tree binding patches, read Documentation/devicetree/bindings/submitting-patches.rst. This documentation assumes that you're using ``git`` to prepare your patches. From patchwork Mon Jul 4 12:25:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905264 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 4D4FBC43334 for ; Mon, 4 Jul 2022 12:27:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234462AbiGDM06 (ORCPT ); Mon, 4 Jul 2022 08:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234229AbiGDM0q (ORCPT ); Mon, 4 Jul 2022 08:26:46 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A4A2DF8C; Mon, 4 Jul 2022 05:26:31 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id d2so16512505ejy.1; Mon, 04 Jul 2022 05:26:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NayUPzpYo0U0IPkA4YIt21GbM97EcjfkD5WbDbC9ho0=; b=Xps446Q8BscxKyTOKJM+98ugCX3kPmNleKq+7O8vXRtAF0kl2P+OjmVPFiMzm9xOwR c2/Q75VWHDvtejhSDXljwsNCy3YnX5I17vhhALgj8MrugJYyzCt0N1V3N/9p8PF37IE4 AS95jereum1xsV79jPZDRxHAcq54eo5CkWHO3EqSQiPo63TFYZNx3rRcNC228Y5b+WGT TVZ/de8pS80VRR3TrPOA5ETlwfwfE77ziV5aTwcJbq2K1opb66PpiuxzY/pjQYeCjqrp TksxUV9e6fk2cY7ChbUUIaJPZK0eAONhqQxffn++VVZ+XH4vG/pvtCN2dx4PAuZL+wbX 6xUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NayUPzpYo0U0IPkA4YIt21GbM97EcjfkD5WbDbC9ho0=; b=QBe15d3AZ5TUT1pzFcNCi8FTF3U2AHcSdnATwDyBbwnaCONhBO7/kJA/wL4Qf6mHFI 21fCTqnzLdmFKe0KfN1E3LGsHoWCpUllK4ItJTaMKFe9eOcOUGtPnF6g6gEfK5BKUB5w XEFBRlyDL+yITfwS2SIHMkY9gRol03Bp2JikbDjjx3qeywiqHXlIZdz6rb2QobisBlKD olQaaNnTE90Xab2D84v7JRvBc1nz9YKjZg8fRElv6chl/pmcXKJdGJ/v83YNuXKmIx6v VS/x4/cLmQEdDrRlvr8mHrXb12XrS7Agud5ufa4+CX7hKsyf1dw85wZ+ZzxyLDc/rtly LTyg== X-Gm-Message-State: AJIora+6ZXLxQzhH/CxPSUCT3j9Nan0Ra3nNdumIyGb8oYRGLU9FTf7d LBKJ5RY3NN/x6td+gOjfeRY= X-Google-Smtp-Source: AGRyM1t2dP6RX1m9fei1stdiNefvDOY1J5rfhOhP+2lxdCacqtDpKSIpuTbw2kX3zladm1Vj90SO/A== X-Received: by 2002:a17:906:d7:b0:718:df95:985 with SMTP id 23-20020a17090600d700b00718df950985mr28515984eji.582.1656937589598; Mon, 04 Jul 2022 05:26:29 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:29 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 07/11] docs: it_IT: align to submitting-drivers removal Date: Mon, 4 Jul 2022 14:25:33 +0200 Message-Id: <20220704122537.3407-8-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Adjust the Italian translation to the removal of submitting-drivers in the English kernel documentation, with some assistance from Frederico Vaga. Link: https://lore.kernel.org/linux-doc/20220628091647.xf5cygybqemwprgb@numero86.vaga.pv.it/ Signed-off-by: Lukas Bulwahn --- .../it_IT/kernel-hacking/hacking.rst | 3 +-- .../translations/it_IT/process/5.Posting.rst | 5 ++--- .../translations/it_IT/process/8.Conclusion.rst | 5 ++--- .../translations/it_IT/process/howto.rst | 3 +-- .../translations/it_IT/process/index.rst | 1 - .../it_IT/process/submitting-drivers.rst | 16 ---------------- .../it_IT/process/submitting-patches.rst | 6 ++---- 7 files changed, 8 insertions(+), 31 deletions(-) delete mode 100644 Documentation/translations/it_IT/process/submitting-drivers.rst diff --git a/Documentation/translations/it_IT/kernel-hacking/hacking.rst b/Documentation/translations/it_IT/kernel-hacking/hacking.rst index d5c521327f6a..4bec4669cf48 100644 --- a/Documentation/translations/it_IT/kernel-hacking/hacking.rst +++ b/Documentation/translations/it_IT/kernel-hacking/hacking.rst @@ -795,8 +795,7 @@ anche per avere patch pulite, c'è del lavoro amministrativo da fare: di un semplice impegno su una parte del codice. - Infine, non dimenticatevi di leggere - ``Documentation/process/submitting-patches.rst`` e possibilmente anche - ``Documentation/process/submitting-drivers.rst``. + ``Documentation/process/submitting-patches.rst``. Trucchetti del kernel ===================== diff --git a/Documentation/translations/it_IT/process/5.Posting.rst b/Documentation/translations/it_IT/process/5.Posting.rst index 1476d51eb5e5..a036f38fc82e 100644 --- a/Documentation/translations/it_IT/process/5.Posting.rst +++ b/Documentation/translations/it_IT/process/5.Posting.rst @@ -16,9 +16,8 @@ e di procedure per la pubblicazione delle patch; seguirle renderà la vita più facile a tutti quanti. Questo documento cercherà di coprire questi argomenti con un ragionevole livello di dettaglio; più informazioni possono essere trovare nella cartella 'Documentation', nei file -:ref:`translations/it_IT/process/submitting-patches.rst `, -:ref:`translations/it_IT/process/submitting-drivers.rst `, e -:ref:`translations/it_IT/process/submit-checklist.rst `. +:ref:`translations/it_IT/process/submitting-patches.rst ` +e :ref:`translations/it_IT/process/submit-checklist.rst `. Quando pubblicarle diff --git a/Documentation/translations/it_IT/process/8.Conclusion.rst b/Documentation/translations/it_IT/process/8.Conclusion.rst index 039bfc5a4108..32659ff467c0 100644 --- a/Documentation/translations/it_IT/process/8.Conclusion.rst +++ b/Documentation/translations/it_IT/process/8.Conclusion.rst @@ -13,9 +13,8 @@ e argomenti correlati. Primo tra questi sarà sempre la cartella Documentation che si trova nei sorgenti kernel. Il file :ref:`process/howto.rst ` è un punto di partenza -importante; :ref:`process/submitting-patches.rst ` e -:ref:`process/submitting-drivers.rst ` sono -anch'essi qualcosa che tutti gli sviluppatori del kernel dovrebbero leggere. +importante; :ref:`process/submitting-patches.rst ` è +anch'esso qualcosa che tutti gli sviluppatori del kernel dovrebbero leggere. Molte API interne al kernel sono documentate utilizzando il meccanismo kerneldoc; "make htmldocs" o "make pdfdocs" possono essere usati per generare quei documenti in HTML o PDF (sebbene le versioni di TeX di alcune diff --git a/Documentation/translations/it_IT/process/howto.rst b/Documentation/translations/it_IT/process/howto.rst index 9554368a2ae2..16ad5622d549 100644 --- a/Documentation/translations/it_IT/process/howto.rst +++ b/Documentation/translations/it_IT/process/howto.rst @@ -109,8 +109,7 @@ Di seguito una lista di file che sono presenti nei sorgente del kernel e che accetteranno patch solo se queste osserveranno tali regole, e molte persone revisioneranno il codice solo se scritto nello stile appropriato. - :ref:`Documentation/translations/it_IT/process/submitting-patches.rst ` e - :ref:`Documentation/translations/it_IT/process/submitting-drivers.rst ` + :ref:`Documentation/translations/it_IT/process/submitting-patches.rst ` Questo file descrive dettagliatamente come creare ed inviare una patch con successo, includendo (ma non solo questo): diff --git a/Documentation/translations/it_IT/process/index.rst b/Documentation/translations/it_IT/process/index.rst index c4c867132c88..b223b70a4a95 100644 --- a/Documentation/translations/it_IT/process/index.rst +++ b/Documentation/translations/it_IT/process/index.rst @@ -41,7 +41,6 @@ degli sviluppatori: :maxdepth: 1 changes - submitting-drivers stable-api-nonsense management-style stable-kernel-rules diff --git a/Documentation/translations/it_IT/process/submitting-drivers.rst b/Documentation/translations/it_IT/process/submitting-drivers.rst deleted file mode 100644 index dadd77e47613..000000000000 --- a/Documentation/translations/it_IT/process/submitting-drivers.rst +++ /dev/null @@ -1,16 +0,0 @@ -.. include:: ../disclaimer-ita.rst - -:Original: :ref:`Documentation/process/submitting-drivers.rst ` -:Translator: Federico Vaga - -.. _it_submittingdrivers: - -Sottomettere driver per il kernel Linux -======================================= - -.. note:: - - Questo documento è vecchio e negli ultimi anni non è stato più aggiornato; - dovrebbe essere aggiornato, o forse meglio, rimosso. La maggior parte di - quello che viene detto qui può essere trovato anche negli altri documenti - dedicati allo sviluppo. Per questo motivo il documento non verrà tradotto. diff --git a/Documentation/translations/it_IT/process/submitting-patches.rst b/Documentation/translations/it_IT/process/submitting-patches.rst index 4fb5b3aa306d..f117ee0a36e2 100644 --- a/Documentation/translations/it_IT/process/submitting-patches.rst +++ b/Documentation/translations/it_IT/process/submitting-patches.rst @@ -18,10 +18,8 @@ Questo documento contiene un vasto numero di suggerimenti concisi. Per maggiori dettagli su come funziona il processo di sviluppo del kernel leggete Documentation/translations/it_IT/process/development-process.rst. Leggete anche Documentation/translations/it_IT/process/submit-checklist.rst per una lista di -punti da verificare prima di inviare del codice. Se state inviando un driver, -allora leggete anche -Documentation/translations/it_IT/process/submitting-drivers.rst; per delle patch -relative alle associazioni per Device Tree leggete +punti da verificare prima di inviare del codice. +Per delle patch relative alle associazioni per Device Tree leggete Documentation/translations/it_IT/process/submitting-patches.rst. Questa documentazione assume che sappiate usare ``git`` per preparare le patch. From patchwork Mon Jul 4 12:25:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905265 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 D19DFC43334 for ; Mon, 4 Jul 2022 12:27:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234303AbiGDM1P (ORCPT ); Mon, 4 Jul 2022 08:27:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234298AbiGDM0r (ORCPT ); Mon, 4 Jul 2022 08:26:47 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 752B8E006; Mon, 4 Jul 2022 05:26:33 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id ay16so16470248ejb.6; Mon, 04 Jul 2022 05:26:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cNjFxmKQ9FWEVFi5C2WKFybYBlChY5kDF2lBxc753bc=; b=qFwcIDJZZ6wkcHmi6vwMKQK8lP6DWYXZV3QqMvD7vjt6X6zMq0Sj2bvkphgck6kHWv KKwJr+DKVvm4f+nPnDdhJvMvCHFF6k+Eu7Ks4HLWtoi7mJHq3uRUV1/muwj6WnWLFc70 1baYAti7U4DZo+SXtykUJulP+PTs8vPhGReSqL7cLiJshKX2mgStO6jexWq5XTYXz3a4 dlDwLnA70Osc/NcMD19waCdclUZhEhpPT3YvX70fvrPtkwpfoWfRYsSIMWWm1TPr4R3g wtip2f6VQant2A6znMhj7J7sUQEO7Sl44eUHHUi72FkP4knU/Aq9qTsYRtqVMqx0FHB4 9cSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cNjFxmKQ9FWEVFi5C2WKFybYBlChY5kDF2lBxc753bc=; b=NRBVmUPzATKcOivxwAB/AkbUWe5qlA9ywEYlmOTPHd9MdnI3N/tTfaWnE1Dm0Ta6ut kSyyLUm+v91ACCPyW7rk/QhW/WpijcULAvD2efALyh/tPgwaqKxtTh8lxFGAFoKzePQl Ck3NxWhMhIk1ZW6y5cazv9UO2wXSkpnz9eKw79cG9nwryv4y2LYCmHXqFnJRMuZozmRz hoqWb77bEKrJuiTxw/SScyyIxm0TMS5mPVag7/Er2fGItXeY/EyWo/WGMXNSyu8t5oDP zJ+xpDNDpF9t27TGRxA60+y5aqgnOrriuC0jafptv+wwm1O4x9th5iLg0m5VqDOfDEx4 21lw== X-Gm-Message-State: AJIora/tvqECwjNFR/pCV8IU2vlsuzettUNRirrXSg7NVQL7kKyVVtVr jG9LdXmdmh9G5fEYQB7f3aM= X-Google-Smtp-Source: AGRyM1u3PMNotc1f56NEP8yRtJWigBBt7SD8zRrMWRbuxt19SELHghjW65jt51eacplEp5/CY5XPIw== X-Received: by 2002:a17:907:a046:b0:72a:b880:aa19 with SMTP id gz6-20020a170907a04600b0072ab880aa19mr8152690ejc.703.1656937592028; Mon, 04 Jul 2022 05:26:32 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:31 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 08/11] docs: ja_JP: howto: remove reference to removed submitting-drivers Date: Mon, 4 Jul 2022 14:25:34 +0200 Message-Id: <20220704122537.3407-9-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org The document submitting-drivers.rst was deleted. This removes the corresponding reference in the Japanese translation of the howto, with some assistance from Akira Yokasawa. Link: https://lore.kernel.org/linux-doc/a2be48e5-e559-17d7-5ae7-d1205a737ea4@gmail.com/ Signed-off-by: Lukas Bulwahn Reviewed-by: Akira Yokosawa --- Documentation/translations/ja_JP/howto.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/translations/ja_JP/howto.rst b/Documentation/translations/ja_JP/howto.rst index 38fed6fe62fe..649e2ff2a407 100644 --- a/Documentation/translations/ja_JP/howto.rst +++ b/Documentation/translations/ja_JP/howto.rst @@ -129,8 +129,8 @@ linux-api@vger.kernel.org に送ることを勧めます。 ルに従っているものだけを受け付け、多くの人は正しいスタイルのコード だけをレビューします。 - :ref:`Documentation/process/submitting-patches.rst ` と :ref:`Documentation/process/submitting-drivers.rst ` - これらのファイルには、どうやってうまくパッチを作って投稿するかにつ + :ref:`Documentation/process/submitting-patches.rst ` + このファイルには、どうやってうまくパッチを作って投稿するかにつ いて非常に詳しく書かれており、以下を含みます (これだけに限らない けれども) From patchwork Mon Jul 4 12:25:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905266 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 544F8C433EF for ; Mon, 4 Jul 2022 12:27:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234387AbiGDM1S (ORCPT ); Mon, 4 Jul 2022 08:27:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234384AbiGDM0s (ORCPT ); Mon, 4 Jul 2022 08:26:48 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB18211445; Mon, 4 Jul 2022 05:26:35 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id g1so3878269edb.12; Mon, 04 Jul 2022 05:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A57xIfZLi+2djoYykZ8gRv7aiC4YCwj7z7nIR/tXI5o=; b=coR324dl9u8bJdxNIPw+0PjsEaehvlW2soGBvNcXFpAg0zszQjxOAzFUryxP8HMcUo W9Kyf55jA2KcgZb/ZbVWF93GEaAPw7Ie3wZMNNlWOgYxUkQRJ5j0IfkOmjGcpmUIVsVO TS+ARHBKneTf8Kk7sXq437wwNn+WUgL1LxvSpGO0wVOMGSfNK2Yj/f+PhxcGWPTAKR+j aynLg34JC0EPANGT5XJ3tNjmoeX1IAGf+kQA8yetQU+QRIGNz9wFa6sFlRYkW5eR0uK5 /JYlaL8Wa3iRHf1CNgze4zOKswWErNxgFjmDhv2AnWlR5sc49c8ISS6HfWKSHj35DoDr 1BHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A57xIfZLi+2djoYykZ8gRv7aiC4YCwj7z7nIR/tXI5o=; b=FfVt3/wA7uCx620E0VMYxjg3T6+kOzeq8obTXPtMlizLdN2bBMMtMXumZyMDdRwD+K m5WG851RJcAine8MknicdURkTX5HE+ONmicoDAD+j5Vn2repvZL+S1Fj3W/tQgOhRTtb FQ/f7lNfNKOlmCE23YXsr0hOuZpiND2CrcOJaPpCSP+hUe+MSstmL0CgO0BeSziM+jON HKn4U9IXniYtNfgsHwR3L1JORB1bK/0eqq9zD0KSHWCZSLZX9RQ8dN+PDf+uKad94VUV uVW51KyGtZ8Wv7MfOW58jLiNdMO4QYKEDvY7oBfBdNYsdBNahfbTx34DHT0Q6LjymIZn 3m6g== X-Gm-Message-State: AJIora8pjEDBJ2FYcDQ1Ep7HbvPzAzse5gnNl8a4sdlz8nwtQJUeRT8q aVnIyMDNu8n7p6ee8lsXr9g= X-Google-Smtp-Source: AGRyM1vgrGt/0CrKhkuyy0/ICHgqiirR8e9FCx4Oeo062lESI0A/ZVOBp6oq5nmMnL/qoMhd8QYcCA== X-Received: by 2002:a05:6402:2497:b0:437:a341:9286 with SMTP id q23-20020a056402249700b00437a3419286mr38271266eda.156.1656937594290; Mon, 04 Jul 2022 05:26:34 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:34 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 09/11] docs: ko_KR: howto: remove reference to removed submitting-drivers Date: Mon, 4 Jul 2022 14:25:35 +0200 Message-Id: <20220704122537.3407-10-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org The document submitting-drivers.rst was deleted. This removes the corresponding reference in the Korean translation of the howto. Signed-off-by: Lukas Bulwahn --- Documentation/translations/ko_KR/howto.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/translations/ko_KR/howto.rst b/Documentation/translations/ko_KR/howto.rst index e3cdf0c84892..e43970584ca4 100644 --- a/Documentation/translations/ko_KR/howto.rst +++ b/Documentation/translations/ko_KR/howto.rst @@ -124,7 +124,7 @@ mtk.manpages@gmail.com의 메인테이너에게 보낼 것을 권장한다. 메인테이너들은 이 규칙을 따르는 패치들만을 받아들일 것이고 많은 사람들이 그 패치가 올바른 스타일일 경우만 코드를 검토할 것이다. - :ref:`Documentation/process/submitting-patches.rst ` 와 :ref:`Documentation/process/submitting-drivers.rst ` + :ref:`Documentation/process/submitting-patches.rst ` 이 파일들은 성공적으로 패치를 만들고 보내는 법을 다음의 내용들로 굉장히 상세히 설명하고 있다(그러나 다음으로 한정되진 않는다). From patchwork Mon Jul 4 12:25:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905267 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 8AAFECCA47C for ; Mon, 4 Jul 2022 12:27:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234568AbiGDM1T (ORCPT ); Mon, 4 Jul 2022 08:27:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234397AbiGDM0t (ORCPT ); Mon, 4 Jul 2022 08:26:49 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81D27DED2; Mon, 4 Jul 2022 05:26:37 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id x10so4152990edd.13; Mon, 04 Jul 2022 05:26:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e3e18M7TEQn0eLwjSdz0vhOa93LeHIVW/hOah37kT2Y=; b=QOg3XmrLiUPfs5Dgm3y22z+GWCXllcdV4tknbzIP6xK1NCbCqtVNEK9QAUmHsceBak r3tpYDnaHLu2bBaL6Ee7hG4IZKP5gv60JuuaMWLS7sujB02c6ZPlqvUJzBZWKDgp1/Zl KCwSIWH1vEeIqT8oeTZAxtt3V2IRR0c/LFTk6H9hI4EkI8exlkqIVvqlbUBnQIgX1PHQ Vp57JUDHOieBEXeb4sl7fWnYO/OBuja4b1kp3tB4rb3NKNOC+AJWmBP4X7JZAOStynQb 5h55/6BCxcc/SUVpNEKpP/f7EsJ9rVbGHiHSBlr9kdJyuQQPj/10sTxWeypcgHO09bW4 vgMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e3e18M7TEQn0eLwjSdz0vhOa93LeHIVW/hOah37kT2Y=; b=GXlBM1F2897QVu+a/rl0HCtaLclIjABLqxck3Pf42711m2wqr/giQIZfEAI0z2ZIS+ VtmqwCkyEU19cUpVe2yNHi8umBwCIYJxB8LuwIBxaZc5ppMqPhBiJgavcgdMlontX9UX EiprWmVH64U/iMxtFKmkZK39pVZ0vCeDOUFWoB79bgTqeb4qkd8cwKYvCSzAoCpwDLa6 c3Pfsz4mlBvYCi86yd9Orh4kRGH4ec6JY/LFfQfgUacuYPb6azW2ExB2o5xBlEgen50/ jho82nXlXDhiGsl0zvfgLudPkBHXQS9dX+ffyftpLO6za/51XVe/CMb/DFQnBNZNccx1 Tv1w== X-Gm-Message-State: AJIora+8M5SkSj1oXdqWxHo42oNnTHEF3YlijwVTNBXQqFuvXoqrNvxY mD2fE4FQJCX8s+KG5RJxOko= X-Google-Smtp-Source: AGRyM1vZK2sDKE8y7Exu0E43Cq75TFOqPnDcjLhIpl698Q5soueZc27nSrvNSiqWdR178fq+O24NxA== X-Received: by 2002:a05:6402:520c:b0:435:af40:8dc6 with SMTP id s12-20020a056402520c00b00435af408dc6mr39643028edd.343.1656937595903; Mon, 04 Jul 2022 05:26:35 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:35 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 10/11] docs: zh_CN: align to submitting-drivers removal Date: Mon, 4 Jul 2022 14:25:36 +0200 Message-Id: <20220704122537.3407-11-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Adjust the Chinese translation to the removal of submitting-drivers in the English kernel documentation. Signed-off-by: Lukas Bulwahn Reviewed-by: Alex Shi --- .../zh_CN/kernel-hacking/hacking.rst | 3 +- .../translations/zh_CN/process/5.Posting.rst | 3 +- .../translations/zh_CN/process/howto.rst | 1 - .../translations/zh_CN/process/index.rst | 1 - .../zh_CN/process/submitting-drivers.rst | 160 ------------------ 5 files changed, 2 insertions(+), 166 deletions(-) delete mode 100644 Documentation/translations/zh_CN/process/submitting-drivers.rst diff --git a/Documentation/translations/zh_CN/kernel-hacking/hacking.rst b/Documentation/translations/zh_CN/kernel-hacking/hacking.rst index f2bc154c5bcc..2c85ddfbfd3a 100644 --- a/Documentation/translations/zh_CN/kernel-hacking/hacking.rst +++ b/Documentation/translations/zh_CN/kernel-hacking/hacking.rst @@ -633,8 +633,7 @@ C++ 文件(无论如何你的名字都应该在源文件的顶部)。维护人员意味着您希望在对 子系统进行更改时得到询问,并了解缺陷;这意味着对某部分代码做出更多承诺。 -- 最后,别忘记去阅读 Documentation/process/submitting-patches.rst , - 也许还有 Documentation/process/submitting-drivers.rst 。 +- 最后,别忘记去阅读 Documentation/process/submitting-patches.rst。 Kernel 仙女棒 =============== diff --git a/Documentation/translations/zh_CN/process/5.Posting.rst b/Documentation/translations/zh_CN/process/5.Posting.rst index 4ee7de13f373..6a469e1c7deb 100644 --- a/Documentation/translations/zh_CN/process/5.Posting.rst +++ b/Documentation/translations/zh_CN/process/5.Posting.rst @@ -19,8 +19,7 @@ 内核开发社区已经发展出一套用于发布补丁的约定和过程;遵循这些约定和过程将使 参与其中的每个人的生活更加轻松。本文档试图描述这些约定的部分细节;更多信息 也可在以下文档中找到 -:ref:`Documentation/translations/zh_CN/process/submitting-patches.rst `, -:ref:`Documentation/translations/zh_CN/process/submitting-drivers.rst ` +:ref:`Documentation/translations/zh_CN/process/submitting-patches.rst ` 和 :ref:`Documentation/translations/zh_CN/process/submit-checklist.rst `。 何时寄送 diff --git a/Documentation/translations/zh_CN/process/howto.rst b/Documentation/translations/zh_CN/process/howto.rst index 1334cdb32a3c..1455190dc087 100644 --- a/Documentation/translations/zh_CN/process/howto.rst +++ b/Documentation/translations/zh_CN/process/howto.rst @@ -96,7 +96,6 @@ Linux内核代码中包含有大量的文档。这些文档对于学习如何与 的代码。 :ref:`Documentation/translations/zh_CN/process/submitting-patches.rst ` - :ref:`Documentation/process/submitting-drivers.rst ` 这两份文档明确描述如何创建和发送补丁,其中包括(但不仅限于): - 邮件内容 diff --git a/Documentation/translations/zh_CN/process/index.rst b/Documentation/translations/zh_CN/process/index.rst index 39e9c88fbaa6..a683dbea0c83 100644 --- a/Documentation/translations/zh_CN/process/index.rst +++ b/Documentation/translations/zh_CN/process/index.rst @@ -40,7 +40,6 @@ .. toctree:: :maxdepth: 1 - submitting-drivers submit-checklist stable-api-nonsense stable-kernel-rules diff --git a/Documentation/translations/zh_CN/process/submitting-drivers.rst b/Documentation/translations/zh_CN/process/submitting-drivers.rst deleted file mode 100644 index 98341e7cd812..000000000000 --- a/Documentation/translations/zh_CN/process/submitting-drivers.rst +++ /dev/null @@ -1,160 +0,0 @@ -.. _cn_submittingdrivers: - -.. include:: ../disclaimer-zh_CN.rst - -:Original: :ref:`Documentation/process/submitting-drivers.rst - ` - -如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 -交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 -译存在问题,请联系中文版维护者:: - - 中文版维护者: 李阳 Li Yang - 中文版翻译者: 李阳 Li Yang - 中文版校译者: 陈琦 Maggie Chen - 王聪 Wang Cong - 张巍 Zhang Wei - -如何向 Linux 内核提交驱动程序 -============================= - -这篇文档将会解释如何向不同的内核源码树提交设备驱动程序。请注意,如果你感 -兴趣的是显卡驱动程序,你也许应该访问 XFree86 项目(https://www.xfree86.org/) -和/或 X.org 项目 (https://x.org)。 - -另请参阅 Documentation/translations/zh_CN/process/submitting-patches.rst 文档。 - - -分配设备号 ----------- - -块设备和字符设备的主设备号与从设备号是由 Linux 命名编号分配权威 LANANA( -现在是 Torben Mathiasen)负责分配。申请的网址是 https://www.lanana.org/。 -即使不准备提交到主流内核的设备驱动也需要在这里分配设备号。有关详细信息, -请参阅 Documentation/admin-guide/devices.rst。 - -如果你使用的不是已经分配的设备号,那么当你提交设备驱动的时候,它将会被强 -制分配一个新的设备号,即便这个设备号和你之前发给客户的截然不同。 - -设备驱动的提交对象 ------------------- - -Linux 2.0: - 此内核源码树不接受新的驱动程序。 - -Linux 2.2: - 此内核源码树不接受新的驱动程序。 - -Linux 2.4: - 如果所属的代码领域在内核的 MAINTAINERS 文件中列有一个总维护者, - 那么请将驱动程序提交给他。如果此维护者没有回应或者你找不到恰当的 - 维护者,那么请联系 Willy Tarreau 。 - -Linux 2.6: - 除了遵循和 2.4 版内核同样的规则外,你还需要在 linux-kernel 邮件 - 列表上跟踪最新的 API 变化。向 Linux 2.6 内核提交驱动的顶级联系人 - 是 Andrew Morton 。 - -决定设备驱动能否被接受的条件 ----------------------------- - -许可: 代码必须使用 GNU 通用公开许可证 (GPL) 提交给 Linux,但是 - 我们并不要求 GPL 是唯一的许可。你或许会希望同时使用多种 - 许可证发布,如果希望驱动程序可以被其他开源社区(比如BSD) - 使用。请参考 include/linux/module.h 文件中所列出的可被 - 接受共存的许可。 - -版权: 版权所有者必须同意使用 GPL 许可。最好提交者和版权所有者 - 是相同个人或实体。否则,必需列出授权使用 GPL 的版权所有 - 人或实体,以备验证之需。 - -接口: 如果你的驱动程序使用现成的接口并且和其他同类的驱动程序行 - 为相似,而不是去发明无谓的新接口,那么它将会更容易被接受。 - 如果你需要一个 Linux 和 NT 的通用驱动接口,那么请在用 - 户空间实现它。 - -代码: 请使用 Documentation/process/coding-style.rst 中所描述的 Linux 代码风 - 格。如果你的某些代码段(例如那些与 Windows 驱动程序包共 - 享的代码段)需要使用其他格式,而你却只希望维护一份代码, - 那么请将它们很好地区分出来,并且注明原因。 - -可移植性: 请注意,指针并不永远是 32 位的,不是所有的计算机都使用小 - 尾模式 (little endian) 存储数据,不是所有的人都拥有浮点 - 单元,不要随便在你的驱动程序里嵌入 x86 汇编指令。只能在 - x86 上运行的驱动程序一般是不受欢迎的。虽然你可能只有 x86 - 硬件,很难测试驱动程序在其他平台上是否可用,但是确保代码 - 可以被轻松地移植却是很简单的。 - -清晰度: 做到所有人都能修补这个驱动程序将会很有好处,因为这样你将 - 会直接收到修复的补丁而不是 bug 报告。如果你提交一个试图 - 隐藏硬件工作机理的驱动程序,那么它将会被扔进废纸篓。 - -电源管理: 因为 Linux 正在被很多移动设备和桌面系统使用,所以你的驱 - 动程序也很有可能被使用在这些设备上。它应该支持最基本的电 - 源管理,即在需要的情况下实现系统级休眠和唤醒要用到的 - .suspend 和 .resume 函数。你应该检查你的驱动程序是否能正 - 确地处理休眠与唤醒,如果实在无法确认,请至少把 .suspend - 函数定义成返回 -ENOSYS(功能未实现)错误。你还应该尝试确 - 保你的驱动在什么都不干的情况下将耗电降到最低。要获得驱动 - 程序测试的指导,请参阅 - Documentation/power/drivers-testing.rst。有关驱动程序电 - 源管理问题相对全面的概述,请参阅 - Documentation/driver-api/pm/devices.rst。 - -管理: 如果一个驱动程序的作者还在进行有效的维护,那么通常除了那 - 些明显正确且不需要任何检查的补丁以外,其他所有的补丁都会 - 被转发给作者。如果你希望成为驱动程序的联系人和更新者,最 - 好在代码注释中写明并且在 MAINTAINERS 文件中加入这个驱动 - 程序的条目。 - -不影响设备驱动能否被接受的条件 ------------------------------- - -供应商: 由硬件供应商来维护驱动程序通常是一件好事。不过,如果源码 - 树里已经有其他人提供了可稳定工作的驱动程序,那么请不要期 - 望“我是供应商”会成为内核改用你的驱动程序的理由。理想的情 - 况是:供应商与现有驱动程序的作者合作,构建一个统一完美的 - 驱动程序。 - -作者: 驱动程序是由大的 Linux 公司研发还是由你个人编写,并不影 - 响其是否能被内核接受。没有人对内核源码树享有特权。只要你 - 充分了解内核社区,你就会发现这一点。 - - -资源列表 --------- - -Linux 内核主源码树: - ftp.??.kernel.org:/pub/linux/kernel/... - ?? == 你的国家代码,例如 "cn"、"us"、"uk"、"fr" 等等 - -Linux 内核邮件列表: - linux-kernel@vger.kernel.org - [可通过向majordomo@vger.kernel.org发邮件来订阅] - -Linux 设备驱动程序,第三版(探讨 2.6.10 版内核): - https://lwn.net/Kernel/LDD3/ (免费版) - -LWN.net: - 每周内核开发活动摘要 - https://lwn.net/ - - 2.6 版中 API 的变更: - - https://lwn.net/Articles/2.6-kernel-api/ - - 将旧版内核的驱动程序移植到 2.6 版: - - https://lwn.net/Articles/driver-porting/ - -内核新手(KernelNewbies): - 为新的内核开发者提供文档和帮助 - https://kernelnewbies.org/ - -Linux USB项目: - http://www.linux-usb.org/ - -写内核驱动的“不要”(Arjan van de Ven著): - http://www.fenrus.org/how-to-not-write-a-device-driver-paper.pdf - -内核清洁工 (Kernel Janitor): - https://kernelnewbies.org/KernelJanitors From patchwork Mon Jul 4 12:25:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12905268 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 48208CCA483 for ; Mon, 4 Jul 2022 12:27:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233745AbiGDM1V (ORCPT ); Mon, 4 Jul 2022 08:27:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234405AbiGDM0v (ORCPT ); Mon, 4 Jul 2022 08:26:51 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DC7711A0A; Mon, 4 Jul 2022 05:26:39 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id r18so11480542edb.9; Mon, 04 Jul 2022 05:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XqoVCGDCGZDBmrA96lhlLMZTaqVBMBouX+m6wwZdWOE=; b=H5YivzCEeuE34uBRZ1K2eXgJvgjMsEE3Bgi2KgX7fu+w3cS5nW349X7mr3neE0B1C/ Pkzw11eqV/TkHqjmnP75UrBZarZofNwO2vVN1IVj4onUShy/TXV02eoLe41XE+8101NE BrZQfpJne04U/ZOUS+n7X4Q3pjfIkMreMoP5LLqXEdypE8QHuJzdUQm6gwvcq+YfRJYs UgQo0CQCGol/N+VpOwx3dORZU65EXEkyDYM20ALv7o0OUVNUOjMVhq3ddi11Ymb0WHuz /cAUH4YmaYlviApq9gFqmt8oDr6QWUzdgdrUDqu0/FPnY/2UqaTDtP0WK70nbo/6ZYWI uG7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XqoVCGDCGZDBmrA96lhlLMZTaqVBMBouX+m6wwZdWOE=; b=MfK5GEJH97DVEHTTsQwyHgrmRz4P6XKPMuEi0U4Qvdcrd22SBIof+2zHXrsZI6BnoX MuX0oIM5+QfFmtZuUoH+czaedFvfYdCqgTWlMHNpAcbEwHWtR1/GPLxnPwmqLEICaODh npG8th0jSW+KUClKxhfCCBuT8F36mj47Ap5VGAN7ifwmhUz+pQ4yUCNcL/EZzLoOeMFo t+03p4qEtbEMnhk7naMSCBXpFmgFQrKkSdfAp22azGQNT0AvF9M9rix/HK6PO5SPXZnw kjgZJ5JwLT6QgPkUnN/WcKkAdz9uIVoc7td6nyt+cP3FCyfmbHfNqUC1JSu/sP6GcwOR PPZA== X-Gm-Message-State: AJIora/mVmYV4Gcvhxt+S79I4R+SlI5CV9vOx+1Prh4IrUbYwQK+UIM0 EshoQ9FW7lV/KMD+cTh9ydA= X-Google-Smtp-Source: AGRyM1t5l8M3izaIw/C3KP+Yg+kSA8eM3kCKu1yn93LomFTjJFBys4CFyjNAkZtpSjLomPRNbRJ6Ng== X-Received: by 2002:a05:6402:5c8:b0:433:545f:a811 with SMTP id n8-20020a05640205c800b00433545fa811mr38628446edx.101.1656937597487; Mon, 04 Jul 2022 05:26:37 -0700 (PDT) Received: from felia.fritz.box (200116b826716b008998943ac77556e4.dip.versatel-1u1.de. [2001:16b8:2671:6b00:8998:943a:c775:56e4]) by smtp.gmail.com with ESMTPSA id k20-20020a1709063fd400b00722f66fb36csm13974467ejj.112.2022.07.04.05.26.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:26:37 -0700 (PDT) From: Lukas Bulwahn To: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , linux-doc@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 11/11] docs: zh_TW: align to submitting-drivers removal Date: Mon, 4 Jul 2022 14:25:37 +0200 Message-Id: <20220704122537.3407-12-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220704122537.3407-1-lukas.bulwahn@gmail.com> References: <20220704122537.3407-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Adjust the Taiwanese translation to the removal of submitting-drivers in the English kernel documentation. Signed-off-by: Lukas Bulwahn --- .../translations/zh_TW/process/5.Posting.rst | 3 +- .../translations/zh_TW/process/howto.rst | 1 - .../translations/zh_TW/process/index.rst | 1 - .../zh_TW/process/submitting-drivers.rst | 164 ------------------ 4 files changed, 1 insertion(+), 168 deletions(-) delete mode 100644 Documentation/translations/zh_TW/process/submitting-drivers.rst diff --git a/Documentation/translations/zh_TW/process/5.Posting.rst b/Documentation/translations/zh_TW/process/5.Posting.rst index 5578bca403e6..280a8832ecc0 100644 --- a/Documentation/translations/zh_TW/process/5.Posting.rst +++ b/Documentation/translations/zh_TW/process/5.Posting.rst @@ -22,8 +22,7 @@ 內核開發社區已經發展出一套用於發布補丁的約定和過程;遵循這些約定和過程將使 參與其中的每個人的生活更加輕鬆。本文檔試圖描述這些約定的部分細節;更多信息 也可在以下文檔中找到 -:ref:`Documentation/translations/zh_TW/process/submitting-patches.rst `, -:ref:`Documentation/translations/zh_TW/process/submitting-drivers.rst ` +:ref:`Documentation/translations/zh_TW/process/submitting-patches.rst ` 和 :ref:`Documentation/translations/zh_TW/process/submit-checklist.rst `。 何時郵寄 diff --git a/Documentation/translations/zh_TW/process/howto.rst b/Documentation/translations/zh_TW/process/howto.rst index 2043691b92e3..68ae4411285b 100644 --- a/Documentation/translations/zh_TW/process/howto.rst +++ b/Documentation/translations/zh_TW/process/howto.rst @@ -99,7 +99,6 @@ Linux內核代碼中包含有大量的文檔。這些文檔對於學習如何與 的代碼。 :ref:`Documentation/translations/zh_TW/process/submitting-patches.rst ` - :ref:`Documentation/process/submitting-drivers.rst ` 這兩份文檔明確描述如何創建和發送補丁,其中包括(但不僅限於): - 郵件內容 diff --git a/Documentation/translations/zh_TW/process/index.rst b/Documentation/translations/zh_TW/process/index.rst index ec7ad14bfd13..c5c59b4fd595 100644 --- a/Documentation/translations/zh_TW/process/index.rst +++ b/Documentation/translations/zh_TW/process/index.rst @@ -43,7 +43,6 @@ .. toctree:: :maxdepth: 1 - submitting-drivers submit-checklist stable-api-nonsense stable-kernel-rules diff --git a/Documentation/translations/zh_TW/process/submitting-drivers.rst b/Documentation/translations/zh_TW/process/submitting-drivers.rst deleted file mode 100644 index 2fdd742318ba..000000000000 --- a/Documentation/translations/zh_TW/process/submitting-drivers.rst +++ /dev/null @@ -1,164 +0,0 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. _tw_submittingdrivers: - -.. include:: ../disclaimer-zh_TW.rst - -:Original: :ref:`Documentation/process/submitting-drivers.rst - ` - -如果想評論或更新本文的內容,請直接聯繫原文檔的維護者。如果你使用英文 -交流有困難的話,也可以向中文版維護者求助。如果本翻譯更新不及時或者翻 -譯存在問題,請聯繫中文版維護者:: - - 中文版維護者: 李陽 Li Yang - 中文版翻譯者: 李陽 Li Yang - 中文版校譯者: 陳琦 Maggie Chen - 王聰 Wang Cong - 張巍 Zhang Wei - 胡皓文 Hu Haowen - -如何向 Linux 內核提交驅動程序 -============================= - -這篇文檔將會解釋如何向不同的內核源碼樹提交設備驅動程序。請注意,如果你感 -興趣的是顯卡驅動程序,你也許應該訪問 XFree86 項目(https://www.xfree86.org/) -和/或 X.org 項目 (https://x.org)。 - -另請參閱 Documentation/translations/zh_TW/process/submitting-patches.rst 文檔。 - - -分配設備號 ----------- - -塊設備和字符設備的主設備號與從設備號是由 Linux 命名編號分配權威 LANANA( -現在是 Torben Mathiasen)負責分配。申請的網址是 https://www.lanana.org/。 -即使不準備提交到主流內核的設備驅動也需要在這裡分配設備號。有關詳細信息, -請參閱 Documentation/admin-guide/devices.rst。 - -如果你使用的不是已經分配的設備號,那麼當你提交設備驅動的時候,它將會被強 -制分配一個新的設備號,即便這個設備號和你之前發給客戶的截然不同。 - -設備驅動的提交對象 ------------------- - -Linux 2.0: - 此內核源碼樹不接受新的驅動程序。 - -Linux 2.2: - 此內核源碼樹不接受新的驅動程序。 - -Linux 2.4: - 如果所屬的代碼領域在內核的 MAINTAINERS 文件中列有一個總維護者, - 那麼請將驅動程序提交給他。如果此維護者沒有回應或者你找不到恰當的 - 維護者,那麼請聯繫 Willy Tarreau 。 - -Linux 2.6: - 除了遵循和 2.4 版內核同樣的規則外,你還需要在 linux-kernel 郵件 - 列表上跟蹤最新的 API 變化。向 Linux 2.6 內核提交驅動的頂級聯繫人 - 是 Andrew Morton 。 - -決定設備驅動能否被接受的條件 ----------------------------- - -許可: 代碼必須使用 GNU 通用公開許可證 (GPL) 提交給 Linux,但是 - 我們並不要求 GPL 是唯一的許可。你或許會希望同時使用多種 - 許可證發布,如果希望驅動程序可以被其他開源社區(比如BSD) - 使用。請參考 include/linux/module.h 文件中所列出的可被 - 接受共存的許可。 - -版權: 版權所有者必須同意使用 GPL 許可。最好提交者和版權所有者 - 是相同個人或實體。否則,必需列出授權使用 GPL 的版權所有 - 人或實體,以備驗證之需。 - -接口: 如果你的驅動程序使用現成的接口並且和其他同類的驅動程序行 - 爲相似,而不是去發明無謂的新接口,那麼它將會更容易被接受。 - 如果你需要一個 Linux 和 NT 的通用驅動接口,那麼請在用 - 戶空間實現它。 - -代碼: 請使用 Documentation/process/coding-style.rst 中所描述的 Linux 代碼風 - 格。如果你的某些代碼段(例如那些與 Windows 驅動程序包共 - 享的代碼段)需要使用其他格式,而你卻只希望維護一份代碼, - 那麼請將它們很好地區分出來,並且註明原因。 - -可移植性: 請注意,指針並不永遠是 32 位的,不是所有的計算機都使用小 - 尾模式 (little endian) 存儲數據,不是所有的人都擁有浮點 - 單元,不要隨便在你的驅動程序里嵌入 x86 彙編指令。只能在 - x86 上運行的驅動程序一般是不受歡迎的。雖然你可能只有 x86 - 硬體,很難測試驅動程序在其他平台上是否可用,但是確保代碼 - 可以被輕鬆地移植卻是很簡單的。 - -清晰度: 做到所有人都能修補這個驅動程序將會很有好處,因爲這樣你將 - 會直接收到修復的補丁而不是 bug 報告。如果你提交一個試圖 - 隱藏硬體工作機理的驅動程序,那麼它將會被扔進廢紙簍。 - -電源管理: 因爲 Linux 正在被很多行動裝置和桌面系統使用,所以你的驅 - 動程序也很有可能被使用在這些設備上。它應該支持最基本的電 - 源管理,即在需要的情況下實現系統級休眠和喚醒要用到的 - .suspend 和 .resume 函數。你應該檢查你的驅動程序是否能正 - 確地處理休眠與喚醒,如果實在無法確認,請至少把 .suspend - 函數定義成返回 -ENOSYS(功能未實現)錯誤。你還應該嘗試確 - 保你的驅動在什麼都不乾的情況下將耗電降到最低。要獲得驅動 - 程序測試的指導,請參閱 - Documentation/power/drivers-testing.rst。有關驅動程序電 - 源管理問題相對全面的概述,請參閱 - Documentation/driver-api/pm/devices.rst。 - -管理: 如果一個驅動程序的作者還在進行有效的維護,那麼通常除了那 - 些明顯正確且不需要任何檢查的補丁以外,其他所有的補丁都會 - 被轉發給作者。如果你希望成爲驅動程序的聯繫人和更新者,最 - 好在代碼注釋中寫明並且在 MAINTAINERS 文件中加入這個驅動 - 程序的條目。 - -不影響設備驅動能否被接受的條件 ------------------------------- - -供應商: 由硬體供應商來維護驅動程序通常是一件好事。不過,如果源碼 - 樹里已經有其他人提供了可穩定工作的驅動程序,那麼請不要期 - 望「我是供應商」會成爲內核改用你的驅動程序的理由。理想的情 - 況是:供應商與現有驅動程序的作者合作,構建一個統一完美的 - 驅動程序。 - -作者: 驅動程序是由大的 Linux 公司研發還是由你個人編寫,並不影 - 響其是否能被內核接受。沒有人對內核源碼樹享有特權。只要你 - 充分了解內核社區,你就會發現這一點。 - - -資源列表 --------- - -Linux 內核主源碼樹: - ftp.??.kernel.org:/pub/linux/kernel/... - ?? == 你的國家代碼,例如 "cn"、"us"、"uk"、"fr" 等等 - -Linux 內核郵件列表: - linux-kernel@vger.kernel.org - [可通過向majordomo@vger.kernel.org發郵件來訂閱] - -Linux 設備驅動程序,第三版(探討 2.6.10 版內核): - https://lwn.net/Kernel/LDD3/ (免費版) - -LWN.net: - 每周內核開發活動摘要 - https://lwn.net/ - - 2.6 版中 API 的變更: - - https://lwn.net/Articles/2.6-kernel-api/ - - 將舊版內核的驅動程序移植到 2.6 版: - - https://lwn.net/Articles/driver-porting/ - -內核新手(KernelNewbies): - 爲新的內核開發者提供文檔和幫助 - https://kernelnewbies.org/ - -Linux USB項目: - http://www.linux-usb.org/ - -寫內核驅動的「不要」(Arjan van de Ven著): - http://www.fenrus.org/how-to-not-write-a-device-driver-paper.pdf - -內核清潔工 (Kernel Janitor): - https://kernelnewbies.org/KernelJanitors -