[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210928134803.0d28feb6@coco.lan>
Date: Tue, 28 Sep 2021 13:48:03 +0200
From: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Linux Doc Mailing List <linux-doc@...r.kernel.org>,
Jonathan Corbet <corbet@....net>,
Amey Narkhede <ameynarkhede03@...il.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Carlos Bilbao <bilbao@...edu>,
Leon Romanovsky <leon@...nel.org>,
Maximilian Luz <luzmaximilian@...il.com>,
Niklas Schnelle <schnelle@...ux.ibm.com>,
Suzuki K Poulose <suzuki.poulose@....com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 06/17] ABI: sysfs-bus-pci: add documentation for
modalias
Em Tue, 28 Sep 2021 12:48:10 +0200
Greg Kroah-Hartman <gregkh@...uxfoundation.org> 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 <bhelgaas@...gle.com>
> > Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
> > ---
> >
> > 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 <foo>" 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
Powered by blists - more mailing lists