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

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86: wmi: Update documentation regarding the GUID-based API

Warn WMI driver developers to not use GUID-based and non-GUID-based
functions for querying WMI data blocks and handling WMI events
simultaneously on the same device, as this will corrupt the WMI device
state and might thus lead to erratic behaviour.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20250216193251.866125-9-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Armin Wolf and committed by
Ilpo Järvinen
8d5316c6 08c9f402

+4
+4
Documentation/wmi/driver-development-guide.rst
··· 96 96 Because of this, WMI drivers should use the state container design pattern as described in 97 97 Documentation/driver-api/driver-model/design-patterns.rst. 98 98 99 + .. warning:: Using both GUID-based and non-GUID-based functions for querying WMI data blocks and 100 + handling WMI events simultaneously on the same device is guaranteed to corrupt the 101 + WMI device state and might lead to erratic behaviour. 102 + 99 103 WMI method drivers 100 104 ------------------ 101 105