Skip to content

Commit 618ba6a

Browse files
Wer-Wolfij-intel
authored andcommitted
platform/x86: wmi: Add bus ABI documentation
Add documentation for the WMI bus sysfs interface so userspace applications can use it to access additional data about WMI devices. Reviewed-by: Hans de Goede <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Armin Wolf <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 12046f8 commit 618ba6a

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
What: /sys/bus/wmi/devices/.../driver_override
2+
Date: February 2024
3+
Contact: Armin Wolf <[email protected]>
4+
Description:
5+
This file allows the driver for a device to be specified which
6+
will override standard ID table matching.
7+
When specified, only a driver with a name matching the value
8+
written to driver_override will have an opportunity to bind
9+
to the device.
10+
The override is specified by writing a string to the
11+
driver_override file (echo wmi-event-dummy > driver_override).
12+
The override may be cleared with an empty string (echo > \
13+
driver_override) which returns the device to standard matching
14+
rules binding.
15+
Writing to driver_override does not automatically unbind the
16+
device from its current driver or make any attempt to automatically
17+
load the specified driver. If no driver with a matching name is
18+
currently loaded in the kernel, the device will not bind to any
19+
driver.
20+
This also allows devices to opt-out of driver binding using a
21+
driver_override name such as "none". Only a single driver may be
22+
specified in the override, there is no support for parsing delimiters.
23+
24+
What: /sys/bus/wmi/devices/.../modalias
25+
Date: November 20:15
26+
Contact: Andy Lutomirski <[email protected]>
27+
Description:
28+
This file contains the MODALIAS value emitted by uevent for a
29+
given WMI device.
30+
31+
Format: wmi:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.
32+
33+
What: /sys/bus/wmi/devices/.../guid
34+
Date: November 2015
35+
Contact: Andy Lutomirski <[email protected]>
36+
Description:
37+
This file contains the GUID used to match WMI devices to
38+
compatible WMI drivers. This GUID is not necessarily unique
39+
inside a given machine, it is solely used to identify the
40+
interface exposed by a given WMI device.
41+
42+
What: /sys/bus/wmi/devices/.../object_id
43+
Date: November 2015
44+
Contact: Andy Lutomirski <[email protected]>
45+
Description:
46+
This file contains the WMI object ID used internally to construct
47+
the ACPI method names used by non-event WMI devices. It contains
48+
two ASCII letters.
49+
50+
What: /sys/bus/wmi/devices/.../notify_id
51+
Date: November 2015
52+
Contact: Andy Lutomirski <[email protected]>
53+
Description:
54+
This file contains the WMI notify ID used internally to map ACPI
55+
events to WMI event devices. It contains two ASCII letters.
56+
57+
What: /sys/bus/wmi/devices/.../instance_count
58+
Date: November 2015
59+
Contact: Andy Lutomirski <[email protected]>
60+
Description:
61+
This file contains the number of WMI object instances being
62+
present on a given WMI device. It contains a non-negative
63+
number.
64+
65+
What: /sys/bus/wmi/devices/.../expensive
66+
Date: November 2015
67+
Contact: Andy Lutomirski <[email protected]>
68+
Description:
69+
This file contains a boolean flag signaling if interacting with
70+
the given WMI device will consume significant CPU resources.
71+
The WMI driver core will take care of enabling/disabling such
72+
WMI devices.
73+
74+
What: /sys/bus/wmi/devices/.../setable
75+
Date: May 2017
76+
Contact: Darren Hart (VMware) <[email protected]>
77+
Description:
78+
This file contains a boolean flags signaling the data block
79+
aassociated with the given WMI device is writable. If the
80+
given WMI device is not associated with a data block, then
81+
this file will not exist.

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ ACPI WMI DRIVER
392392
M: Armin Wolf <[email protected]>
393393
394394
S: Maintained
395+
F: Documentation/ABI/testing/sysfs-bus-wmi
395396
F: Documentation/driver-api/wmi.rst
396397
F: Documentation/wmi/
397398
F: drivers/platform/x86/wmi.c

0 commit comments

Comments
 (0)