Lines Matching +full:acpi +full:- +full:based
1 .. SPDX-License-Identifier: GPL-2.0-or-later
8 documented at Documentation/driver-api/wmi.rst. This document will serve
11 using the deprecated GUID-based WMI interface.
14 --------------------------------
22 lswmi -V
30 The ``wmi-bmof`` driver exposes this information to userspace, see
31 Documentation/wmi/devices/wmi-bmof.rst.
37 ./bmf2mof /sys/bus/wmi/devices/05901221-D566-11D1-B2F0-00A0C9062910[-X]/bmof
39 Sometimes, looking at the disassembled ACPI tables used to describe the WMI device
40 helps in understanding how the WMI device is supposed to work. The path of the ACPI
49 --------------------------
58 { "936DA01F-9ABD-4D9D-80C7-02AF85C822A8", NULL },
80 driver-specific data structures and initialising interfaces to other kernel subsystems should
86 Documentation/driver-api/driver-model/devres.rst for details.
89 the WMI device and put it in a well-known state for the WMI driver to pick up later after reboot
93 and are forbidden from using any deprecated GUID-based WMI functions. This means that the
98 Documentation/driver-api/driver-model/design-patterns.rst.
100 .. warning:: Using both GUID-based and non-GUID-based functions for querying WMI data blocks and
105 ------------------
108 structure of the ACPI buffer passed to this function is device-specific and usually
109 needs some tinkering to get right. Looking at the ACPI tables containing the WMI
111 are also device-specific, looking at the decoded Binary MOF is usually enough to
119 ----------------------
122 structure of the returned ACPI object is again device-specific. Some WMI devices
127 Take a look at drivers/platform/x86/intel/wmi/sbl-fw-update.c for an example
131 -----------------
135 the structure of the ACPI object passed to this callback is device-specific, and freeing the
136 ACPI object is being done by the WMI subsystem, not the driver.
148 Take a look at drivers/platform/x86/xiaomi-wmi.c for an example WMI event driver.
151 -------------------------------------
169 ---------------
173 - usage of the deprecated GUID-based WMI interface which uses GUIDs instead of WMI device structs
174 - bypassing of the WMI subsystem when talking to WMI devices
175 - WMI drivers which cannot be instantiated multiple times.
182 Documentation/process/coding-style.rst. The checkpatch utility can catch many common coding style
187 ./scripts/checkpatch.pl --strict <path to driver file>