2021-09-14 14:56:46

by Mauro Carvalho Chehab

[permalink] [raw]
Subject: [PATCH v2 6/8] ABI: sysfs-bus-pci: add documentation for modalias

Even being available since 2005, there's no documentation for
modalias.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
---
Documentation/ABI/testing/sysfs-bus-pci | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci
index 191cbe9ae5ed..1da4c8db3a9e 100644
--- a/Documentation/ABI/testing/sysfs-bus-pci
+++ b/Documentation/ABI/testing/sysfs-bus-pci
@@ -187,6 +187,23 @@ 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
+Contact: Greg Kroah-Hartman <[email protected]>
+Description:
+ This attribute indicates the PCI ID of the device object.
+
+ That is in the format:
+ pci:vXXXXXXXXdXXXXXXXXsvXXXXXXXXsdXXXXXXXXbcXXscXXiXX,
+ where:
+ - vXXXXXXXX contains the vendor ID;
+ - dXXXXXXXX contains the device ID;
+ - svXXXXXXXX contains the sub-vendor ID;
+ - sdXXXXXXXX contains the subsystem device ID;
+ - bcXX contains the device class;
+ - scXX contains the device subclass;
+ - iXX contains the device class programming interface.
+
What: /sys/bus/pci/slots/.../module
Date: June 2009
Contact: [email protected]
--
2.31.1


2021-09-14 19:00:54

by Bjorn Helgaas

[permalink] [raw]
Subject: Re: [PATCH v2 6/8] ABI: sysfs-bus-pci: add documentation for modalias

On Tue, Sep 14, 2021 at 04:55:19PM +0200, Mauro Carvalho Chehab wrote:
> Even being available since 2005, there's no documentation for
> modalias.
>
> Signed-off-by: Mauro Carvalho Chehab <[email protected]>

Acked-by: Bjorn Helgaas <[email protected]>

> ---
> Documentation/ABI/testing/sysfs-bus-pci | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci
> index 191cbe9ae5ed..1da4c8db3a9e 100644
> --- a/Documentation/ABI/testing/sysfs-bus-pci
> +++ b/Documentation/ABI/testing/sysfs-bus-pci
> @@ -187,6 +187,23 @@ 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
> +Contact: Greg Kroah-Hartman <[email protected]>
> +Description:
> + This attribute indicates the PCI ID of the device object.
> +
> + That is in the format:
> + pci:vXXXXXXXXdXXXXXXXXsvXXXXXXXXsdXXXXXXXXbcXXscXXiXX,
> + where:
> + - vXXXXXXXX contains the vendor ID;
> + - dXXXXXXXX contains the device ID;
> + - svXXXXXXXX contains the sub-vendor ID;
> + - sdXXXXXXXX contains the subsystem device ID;
> + - bcXX contains the device class;
> + - scXX contains the device subclass;
> + - iXX contains the device class programming interface.
> +
> What: /sys/bus/pci/slots/.../module
> Date: June 2009
> Contact: [email protected]
> --
> 2.31.1
>