Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp586798ybd; Sat, 22 Jun 2019 10:00:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYX5PWdyuregowS+LxqFksJvTkoKOcQq5ZPeR4CitHuqdxrwpP6Chplvd+Yh8H18XEvST9 X-Received: by 2002:a63:dc56:: with SMTP id f22mr24641861pgj.305.1561222806130; Sat, 22 Jun 2019 10:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561222806; cv=none; d=google.com; s=arc-20160816; b=Ky9FEP56VO/Z/gFNOql4nUTtHVgFwbG4+lP+I2FBIxNrxuE+XUcj8chTgcbl8P4lEr GiJE+lnXpTUfD/rYOAPaGqLrnar2Up6fvs8ikU7P/2PuGV4DB1xZ5Zb5uDiQXLgrDdMm J7qL4qSY8wG3E84+etXqoeyB3rbxcl9KZcghMp24Ptb5BZbA4nDc0WZsrL7nx7/nqwJw XkbMjPWDtNxNQbW8Pw2GniN3FvFJvEaS4/TaKWh3RkccjehvHQVWLrXST0keVhrNtCp+ yIul28QC6ulRfKkpKGoPSe0zes5mbLMgFJB4phy8s5zsZrPBDcxJwiNPdaERs094Jbgu qRuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=knNMeRNVEMFb1CogSvERAJQe8ypQaoHP2ZiJ709imXE=; b=DSTUE2RuvHS+ReNUgu64j0Wo9DVh14EVHOGMkYW4XSCMRYxUSK/N3EcSz3EEGdEsRO PA8zLejkwPcjkbL/CDv52zpeAd18PN/FeVmDR5ciqotWIOsb8GK+W9Eb8MPAmpngftaS THyQduqQy4W9Xnh3ENjkWdmQhqoKWmmXMtAWpWBYqeZasNy8sYmkyIvBg5OUptdcETJq 8bTFWuUpZ1A+fUxvZwGFtnMiNDhltVuXnCzZIcElakBsNkKaau7N5uRSd4w74sO7ltLQ lDvJhAD9zEd+BEv0Ovx9QwOX1gEjNchiw41GH+LnWh/QNij5AVtXStFBz2i62p3FUyNx 4AJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GYwV79Co; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si5132711pgp.249.2019.06.22.09.59.50; Sat, 22 Jun 2019 10:00:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GYwV79Co; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726646AbfFVQ7Z (ORCPT + 99 others); Sat, 22 Jun 2019 12:59:25 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42860 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbfFVQ7D (ORCPT ); Sat, 22 Jun 2019 12:59:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=knNMeRNVEMFb1CogSvERAJQe8ypQaoHP2ZiJ709imXE=; b=GYwV79Cogl1NkCn5jTg3hgxd/K AdcNtSIm+u5uMcKJano3cJJQ0OPq0Srq/7dZok8aliAeynZZQX8TYFNwObuFadgtJVp+0y/2n9EfB ytIUdxDSB7gAWRoO8kfJrdy3kbVAqDvnyTlvN3F2vY7il7dWiGgmTgsPDJ52S70IwnWGwkQDhzLT3 Ykmw5oYhcvxMWcLVVCEBpI93YeP5frcTk70gfHiFHjax2y2oQt6CL8+mZQDKsU+UNGriaoI3Sl6+r We7O8pQt/DH5vYHHRkfegILi1GhTQiiObZH/dUA5yH5bEGhL5/2K0flbR2m+RV+Ii+mbMgo2roz3L PRzGQIzA==; Received: from [179.95.45.115] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hejLz-00054w-0f; Sat, 22 Jun 2019 16:59:03 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hejLs-0000w0-3U; Sat, 22 Jun 2019 13:58:56 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , gregkh@linuxfoundation.org, Jonathan Corbet Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: [PATCH 12/12] docs: add ABI documentation to the admin-guide book Date: Sat, 22 Jun 2019 13:58:53 -0300 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As we don't want a generic Sphinx extension to execute commands, change the one proposed to Markus to call the abi_book.pl script. Use a script to parse the Documentation/ABI directory and output it at the admin-guide. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/abi-obsolete.rst | 10 ++++++++++ Documentation/admin-guide/abi-removed.rst | 4 ++++ Documentation/admin-guide/abi-stable.rst | 13 +++++++++++++ Documentation/admin-guide/abi-testing.rst | 19 +++++++++++++++++++ Documentation/admin-guide/abi.rst | 11 +++++++++++ Documentation/admin-guide/index.rst | 1 + Documentation/conf.py | 2 +- 7 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 Documentation/admin-guide/abi-obsolete.rst create mode 100644 Documentation/admin-guide/abi-removed.rst create mode 100644 Documentation/admin-guide/abi-stable.rst create mode 100644 Documentation/admin-guide/abi-testing.rst create mode 100644 Documentation/admin-guide/abi.rst diff --git a/Documentation/admin-guide/abi-obsolete.rst b/Documentation/admin-guide/abi-obsolete.rst new file mode 100644 index 000000000000..cda9168445a5 --- /dev/null +++ b/Documentation/admin-guide/abi-obsolete.rst @@ -0,0 +1,10 @@ +ABI obsolete symbols +==================== + +Documents interfaces that are still remaining in the kernel, but are +marked to be removed at some later point in time. + +The description of the interface will document the reason why it is +obsolete and when it can be expected to be removed. + +.. kernel-abi:: $srctree/Documentation/ABI/obsolete diff --git a/Documentation/admin-guide/abi-removed.rst b/Documentation/admin-guide/abi-removed.rst new file mode 100644 index 000000000000..497978fc9632 --- /dev/null +++ b/Documentation/admin-guide/abi-removed.rst @@ -0,0 +1,4 @@ +ABI removed symbols +=================== + +.. kernel-abi:: $srctree/Documentation/ABI/removed diff --git a/Documentation/admin-guide/abi-stable.rst b/Documentation/admin-guide/abi-stable.rst new file mode 100644 index 000000000000..7495d7a35048 --- /dev/null +++ b/Documentation/admin-guide/abi-stable.rst @@ -0,0 +1,13 @@ +ABI stable symbols +================== + +Documents the interfaces that the developer has defined to be stable. + +Userspace programs are free to use these interfaces with no +restrictions, and backward compatibility for them will be guaranteed +for at least 2 years. + +Most interfaces (like syscalls) are expected to never change and always +be available. + +.. kernel-abi:: $srctree/Documentation/ABI/stable diff --git a/Documentation/admin-guide/abi-testing.rst b/Documentation/admin-guide/abi-testing.rst new file mode 100644 index 000000000000..5c886fc50b9e --- /dev/null +++ b/Documentation/admin-guide/abi-testing.rst @@ -0,0 +1,19 @@ +ABI testing symbols +=================== + +Documents interfaces that are felt to be stable, +as the main development of this interface has been completed. + +The interface can be changed to add new features, but the +current interface will not break by doing this, unless grave +errors or security problems are found in them. + +Userspace programs can start to rely on these interfaces, but they must +be aware of changes that can occur before these interfaces move to +be marked stable. + +Programs that use these interfaces are strongly encouraged to add their +name to the description of these interfaces, so that the kernel +developers can easily notify them if any changes occur. + +.. kernel-abi:: $srctree/Documentation/ABI/testing diff --git a/Documentation/admin-guide/abi.rst b/Documentation/admin-guide/abi.rst new file mode 100644 index 000000000000..3b9645c77469 --- /dev/null +++ b/Documentation/admin-guide/abi.rst @@ -0,0 +1,11 @@ +===================== +Linux ABI description +===================== + +.. toctree:: + :maxdepth: 1 + + abi-stable + abi-testing + abi-obsolete + abi-removed diff --git a/Documentation/admin-guide/index.rst b/Documentation/admin-guide/index.rst index 8001917ee012..20c3020fd73c 100644 --- a/Documentation/admin-guide/index.rst +++ b/Documentation/admin-guide/index.rst @@ -16,6 +16,7 @@ etc. README kernel-parameters devices + abi This section describes CPU vulnerabilities and their mitigations. diff --git a/Documentation/conf.py b/Documentation/conf.py index 7ace3f8852bd..598256fb5c98 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -34,7 +34,7 @@ needs_sphinx = '1.3' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include', 'cdomain', 'kfigure', 'sphinx.ext.ifconfig'] +extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include', 'cdomain', 'kfigure', 'sphinx.ext.ifconfig', 'kernel_abi'] # The name of the math extension changed on Sphinx 1.4 if (major == 1 and minor > 3) or (major > 1): -- 2.21.0