Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ABI: sysfs-bus-rapidio: use wildcards on What definitions

While humans may be able to understand that something like:

/sys/bus/rapidio/devices/nn:d:iiii

could actually mean:

/sys/bus/rapidio/devices/00:e:0000

This is something that computers can't easily identify. As
get_abi.pl needs to convert it into a regex, change What: lines
to:

/sys/bus/rapidio/devices/<nn>:<d>:<iiii>

Which is the commonly-used pattern on ABI files for wildcards.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/207762e994d50eec0bf8d61c3adf153030c821eb.1631782432.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mauro Carvalho Chehab and committed by
Greg Kroah-Hartman
08981d29 ea84409f

+16 -16
+16 -16
Documentation/ABI/testing/sysfs-bus-rapidio
··· 1 - What: /sys/bus/rapidio/devices/nn:d:iiii 1 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii> 2 2 Description: 3 3 For each RapidIO device, the RapidIO subsystem creates files in 4 4 an individual subdirectory with the following name format of ··· 29 29 Attributes Common for All RapidIO Devices 30 30 ----------------------------------------- 31 31 32 - What: /sys/bus/rapidio/devices/nn:d:iiii/did 32 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii>/did 33 33 Date: Nov, 2005 34 34 KernelVersion: v2.6.15 35 35 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 37 37 Description: 38 38 (RO) returns the device identifier 39 39 40 - What: /sys/bus/rapidio/devices/nn:d:iiii/vid 40 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii>/vid 41 41 Date: Nov, 2005 42 42 KernelVersion: v2.6.15 43 43 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 45 45 Description: 46 46 (RO) returns the device vendor identifier 47 47 48 - What: /sys/bus/rapidio/devices/nn:d:iiii/device_rev 48 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii>/device_rev 49 49 Date: Nov, 2005 50 50 KernelVersion: v2.6.15 51 51 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 53 53 Description: 54 54 (RO) returns the device revision level 55 55 56 - What: /sys/bus/rapidio/devices/nn:d:iiii/asm_did 56 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii>/asm_did 57 57 Date: Nov, 2005 58 58 KernelVersion: v2.6.15 59 59 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 61 61 Description: 62 62 (RO) returns identifier for the assembly containing the device 63 63 64 - What: /sys/bus/rapidio/devices/nn:d:iiii/asm_rev 64 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii>/asm_rev 65 65 Date: Nov, 2005 66 66 KernelVersion: v2.6.15 67 67 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 70 70 (RO) returns revision level of the assembly containing the 71 71 device 72 72 73 - What: /sys/bus/rapidio/devices/nn:d:iiii/asm_vid 73 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii>/asm_vid 74 74 Date: Nov, 2005 75 75 KernelVersion: v2.6.15 76 76 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 79 79 (RO) returns vendor identifier of the assembly containing the 80 80 device 81 81 82 - What: /sys/bus/rapidio/devices/nn:d:iiii/destid 82 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii>/destid 83 83 Date: Mar, 2011 84 84 KernelVersion: v2.6.3 85 85 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 88 88 (RO) returns device destination ID assigned by the enumeration 89 89 routine 90 90 91 - What: /sys/bus/rapidio/devices/nn:d:iiii/lprev 91 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii>/lprev 92 92 Date: Mar, 2011 93 93 KernelVersion: v2.6.39 94 94 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 97 97 (RO) returns name of previous device (switch) on the path to the 98 98 device that that owns this attribute 99 99 100 - What: /sys/bus/rapidio/devices/nn:d:iiii/modalias 100 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii>/modalias 101 101 Date: Jul, 2013 102 102 KernelVersion: v3.11 103 103 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 105 105 Description: 106 106 (RO) returns the device modalias 107 107 108 - What: /sys/bus/rapidio/devices/nn:d:iiii/config 108 + What: /sys/bus/rapidio/devices/<nn>:<d>:<iiii>/config 109 109 Date: Nov, 2005 110 110 KernelVersion: v2.6.15 111 111 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 128 128 set by the switch initialization routine during enumeration or discovery 129 129 process. 130 130 131 - What: /sys/bus/rapidio/devices/nn:s:iiii/routes 131 + What: /sys/bus/rapidio/devices/<nn>:<s>:<iiii>/routes 132 132 Date: Nov, 2005 133 133 KernelVersion: v2.6.15 134 134 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 138 138 This attribute reports only valid routing table entries, one 139 139 line for each entry. 140 140 141 - What: /sys/bus/rapidio/devices/nn:s:iiii/destid 141 + What: /sys/bus/rapidio/devices/<nn>:<s>:<iiii>/destid 142 142 Date: Mar, 2011 143 143 KernelVersion: v2.6.3 144 144 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 147 147 (RO) device destination ID of the associated device that defines 148 148 a route to the switch 149 149 150 - What: /sys/bus/rapidio/devices/nn:s:iiii/hopcount 150 + What: /sys/bus/rapidio/devices/<nn>:<s>:<iiii>/hopcount 151 151 Date: Mar, 2011 152 152 KernelVersion: v2.6.39 153 153 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 155 155 Description: 156 156 (RO) number of hops on the path to the switch 157 157 158 - What: /sys/bus/rapidio/devices/nn:s:iiii/lnext 158 + What: /sys/bus/rapidio/devices/<nn>:<s>:<iiii>/lnext 159 159 Date: Mar, 2011 160 160 KernelVersion: v2.6.39 161 161 Contact: Matt Porter <mporter@kernel.crashing.org>, ··· 172 172 173 173 IDT_GEN2- 174 174 175 - What: /sys/bus/rapidio/devices/nn:s:iiii/errlog 175 + What: /sys/bus/rapidio/devices/<nn>:<s>:<iiii>/errlog 176 176 Date: Oct, 2010 177 177 KernelVersion: v2.6.37 178 178 Contact: Matt Porter <mporter@kernel.crashing.org>,