summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_acad.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_acad.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_acad.c')
-rw-r--r--sys/dev/acpica/acpi_acad.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c
index 601f96c..29b8bb9 100644
--- a/sys/dev/acpica/acpi_acad.c
+++ b/sys/dev/acpica/acpi_acad.c
@@ -39,7 +39,7 @@
#include <sys/conf.h>
#include <sys/power.h>
-#include "acpi.h"
+#include "acpi.h"
#include <dev/acpica/acpivar.h>
#include <dev/acpica/acpiio.h>
@@ -108,6 +108,8 @@ acpi_acad_get_status(void *context)
POWER_PROFILE_ECONOMY);
ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev),
"%s Line\n", sc->status ? "On" : "Off");
+
+ acpi_UserNotify("ACAD", h, sc->status);
}
}
OpenPOWER on IntegriCloud