Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4814178pxb; Tue, 28 Sep 2021 04:52:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgERDPiR3/mACwGl6upGuACuEgzl7uzl6th4yH1HVMkpxy8/4/lp+9ePPBZ3QZa/ZMhb3Z X-Received: by 2002:a17:906:7302:: with SMTP id di2mr6344370ejc.409.1632829935595; Tue, 28 Sep 2021 04:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632829935; cv=none; d=google.com; s=arc-20160816; b=s/9ghKbUethV7KnoAO1oZtd9LX8/PLn3hme1I38zALHUceCGG5ynIhWO2W1r9gmPZV 3j0fp2FZQASFG8TM0GMG9yvG2bcZmjzw1SJSXFUjMfgX+Twz76usMtDlJw7udYx6htv2 6HPekEbMmGQsAmDg33CzD5yDOGMmv7eM+e3rGtDPIpnwnFjczYShl7k99JV8/aUWDkOT 6QigimLM+LYk+vK0v9B63bAo83N9IzQ6KdwlJ3BXEhAF6jOR7uCfbSmaK7ko2atz11iz +q02W+7ciqmCBu/FwZL8+Sn8OPLbpZ/wKyMGcBgOhqESbhyxCh622ZHL0/lH80fKVnYO IcFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=QMNYxgVA2md8hKKn0WkmaM3v0MApd2PmvPBgd1YcL2Y=; b=B5N17rS495QdT6up3FJeXcJJlZ5UlnQYNq7Rj+F1Cc8GE+PHhgEHVAJCZIguWYUCFj DSHaJcxMcsjEEChVC6v22WqLpZj/AmpfPVh+CFl9gTDRtE1OplqjafuUj+AzjCz2qehK seTjh3SqK34/5pc++MBd+TuJPQKM6VDL2DJELw/eZvizFJ2O2sq6BgwNTUgdh3gOYq5G Gl4P8E7GP2t2MC9FYaXVmar5U9O17rc7HIalVVweVtHOB8PgBnMYWeDongxVu7K+NyvI 52XEwM6irtDGCQKQ3hLdZli2zYgXZZNwn+htBfKxQiryWi9VZUJzNqsQG2V0UCFbRHM4 Su3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qMX0VSam; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si3568169ejl.543.2021.09.28.04.51.50; Tue, 28 Sep 2021 04:52:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qMX0VSam; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240410AbhI1Ltz (ORCPT + 99 others); Tue, 28 Sep 2021 07:49:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:36836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240343AbhI1Ltx (ORCPT ); Tue, 28 Sep 2021 07:49:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B773D61157; Tue, 28 Sep 2021 11:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632829694; bh=vggUV5w9gPWUj0ZepYVJiJ+ZdNJmronGsXprqLnRN7Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qMX0VSamLXVs6tHBQy5sBxpNV6KA2fj5dcROnJKrVfz2UN02u5gvPlfL1z6LyluF4 F75Ra+DEYrfN/LjiOncFTHaGZf3ZjSs/uomCpqFeVNDSV1G/APmcTZsisPvT81nzFy z9iChvTDT2bn7vTBFZLGuQnanm2XrFjA9pwgJQE8+DWWD5z5kQUGMKR0ynlXIKC/zJ MqIKYz0ca+OI0nDReAOFrQSuurVm2qgEhJjeVIfijU661rRl2mnxLdTGB4Xiz0Db72 uJwspzuOF3iQH3XlS8MDmH8bCrsTpvV6SiDdMcILW0M+nwV9QMTRDo1jHrrwt0kKzp WirVQKW57rEvQ== Date: Tue, 28 Sep 2021 13:48:03 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: Linux Doc Mailing List , Jonathan Corbet , Amey Narkhede , Bjorn Helgaas , Carlos Bilbao , Leon Romanovsky , Maximilian Luz , Niklas Schnelle , Suzuki K Poulose , linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/17] ABI: sysfs-bus-pci: add documentation for modalias Message-ID: <20210928134803.0d28feb6@coco.lan> In-Reply-To: References: <9ceb1fcdbef3c0d2d0368dcc2f19084a3e529ad1.1632750608.git.mchehab+huawei@kernel.org> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 28 Sep 2021 12:48:10 +0200 Greg Kroah-Hartman escreveu: > On Mon, Sep 27, 2021 at 03:59:39PM +0200, Mauro Carvalho Chehab wrote: > > Even being available since 2005, there's no documentation for > > modalias. > > > > Acked-by: Bjorn Helgaas > > Signed-off-by: Mauro Carvalho Chehab > > --- > > > > See [PATCH 00/17] at: https://lore.kernel.org/all/cover.1632750608.git.mchehab+huawei@kernel.org/ > > > > Documentation/ABI/testing/sysfs-bus-pci | 18 ++++++++++++++++++ > > 1 file changed, 18 insertions(+) > > > > diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci > > index 191cbe9ae5ed..1eeac7f59672 100644 > > --- a/Documentation/ABI/testing/sysfs-bus-pci > > +++ b/Documentation/ABI/testing/sysfs-bus-pci > > @@ -187,6 +187,24 @@ Description: > > The symbolic link points to the PCI device sysfs entry of the > > Physical Function this device associates with. > > > > +What: /sys/bus/pci/devices/.../modalias > > +Date: May 2005 > > Wow, I was not good at documenting this stuff back then, sorry about > that :( Yeah, I guess most of the undocumented stuff comes from old times. > I'll queue this series up now, thanks so much for working on this! Anytime! I'm also glad with the results. - I guess that there's still one missing feature at the script, that should probably be easy to implement. Right now, "./get_abi.pl search " doesn't evaluate regexes, but searches for a substring match. This is very fast, but we could do better, by changing the logic in order to use the preparation part of the "undefined" logic, if the exact match doesn't happen. This way, a sys admin could use the script in order to find documentation for a certain sysfs file on his system. If I have some spare time left, I guess I'll try to implement it. Thanks, Mauro