summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_cmbat.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-10-25 05:03:25 +0000
committernjl <njl@FreeBSD.org>2003-10-25 05:03:25 +0000
commitbcfcc4ec03c6e17a313c90ea3e6c8365ac38a56f (patch)
treef99a0a9cead000dd7aa9b256d999d0e451d0c239 /sys/dev/acpica/acpi_cmbat.c
parentcdc83babef20f1fd97d3bbab52fb817c3f07a8bf (diff)
downloadFreeBSD-src-bcfcc4ec03c6e17a313c90ea3e6c8365ac38a56f.zip
FreeBSD-src-bcfcc4ec03c6e17a313c90ea3e6c8365ac38a56f.tar.gz
Add devctl(4) notify support to ACPI. Various subsystems now notify
userland whenever events occur. See the example in devd.conf below to see how to use it.
Diffstat (limited to 'sys/dev/acpica/acpi_cmbat.c')
-rw-r--r--sys/dev/acpica/acpi_cmbat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_cmbat.c b/sys/dev/acpica/acpi_cmbat.c
index b5bebc9..d14ea71 100644
--- a/sys/dev/acpica/acpi_cmbat.c
+++ b/sys/dev/acpica/acpi_cmbat.c
@@ -295,6 +295,8 @@ acpi_cmbat_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
if ((sc = device_get_softc(dev)) == NULL)
return;
+ acpi_UserNotify("CMBAT", h, notify);
+
switch (notify) {
case ACPI_NOTIFY_DEVICE_CHECK:
case ACPI_BATTERY_BST_CHANGE:
OpenPOWER on IntegriCloud