reactos/drivers
George Bișoc b0680d65fe
[BATTC] Signal the wait battery tag event when notifying Battery Class
BatteryClassStatusNotify is used by battery miniport drivers to notify the Battery Class of a status change. This can either be a battery status change or battery tag assignation, depending on what the device extension (namely the composite battery) waits for.

We do have implementation for EVENT_BATTERY_STATUS but not for EVENT_BATTERY_TAG. What happens is when BatteryClassIoctl fails to query the battery tag because it has not yet been assigned, the thread is stuck on waiting for the event object to be signaled, forever.
This tipically happens when a timeout of -1 (meaning the calling thread must wait indefinitely) is supplied. The composite battery driver (COMPBATT) is responsible to signal the Battery Class when a CM (Control Method) ACPI battery receives a tag, which then this function will signal the event.

CORE-18969
CORE-19452
2024-12-17 14:23:33 +01:00
..
base [KDVM] Fix definition of RtlEqualMemory() (#6988) 2024-06-10 22:29:22 +02:00
battery [BATTC] Signal the wait battery tag event when notifying Battery Class 2024-12-17 14:23:33 +01:00
bluetooth [REACTOS] Add missing line breaks at end of file 2024-10-06 10:47:11 +03:00
bus [CMBATT] Grab the design voltage after the BIF data gets copied 2024-12-16 22:09:02 +01:00
crypto
filesystems [FS_REC] Rename Ext2 recognizer to Ext recognizer (#7497) 2024-11-18 21:27:16 +01:00
filters [REACTOS] Add missing line breaks at end of file 2024-10-06 10:47:11 +03:00
hid [ACLEDIT][MSIMG32][HIDCLASS] Fix DLL-main function argument type in spec file. 2022-10-06 16:16:40 +02:00
input [DRIVERS] Fix misusages of the RTL_REGISTRY_OPTIONAL flag. 2024-12-14 19:12:11 +01:00
ksfilter [REACTOS] Use the ISO C and C++ conformant names: _wcsicmp, _stricmp 2024-10-20 14:12:25 +03:00
multimedia [BDASUP][KMIXER][MMIXER][STREAM] Replace meaningless YDEBUG (#5818) 2023-10-31 12:04:24 +00:00
network [CMAKE][LWIP] Fix build with newer CMake versions 2024-11-10 11:46:47 +02:00
parallel [DRIVERS] Use IoForwardIrpSynchronously in drivers 2022-01-05 02:17:56 +03:00
processor [DRIVERS][INF] Update Romanian (ro-RO) translation (#6088) 2023-12-09 20:19:54 +01:00
sac [REACTOS] Use the ISO C and C++ conformant names: _wcsicmp, _stricmp 2024-10-20 14:12:25 +03:00
serial [DRIVERS] Add some missing OBJ_KERNEL_HANDLE (#4493) 2022-05-07 22:12:19 +03:00
setup [BLUE] Optimize ScrIoControl for speed (#5185) 2023-03-28 08:12:38 +09:00
storage [REACTOS] Add missing line breaks at end of file 2024-10-06 10:47:11 +03:00
usb [REACTOS] Add missing line breaks at end of file 2024-10-06 10:47:11 +03:00
wdm [REACTOS] Add missing line breaks at end of file 2024-10-06 10:47:11 +03:00
wmi
CMakeLists.txt