diff options
author | Zhang Rui <rui.zhang@intel.com> | 2007-06-19 11:40:03 +0800 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-07-03 14:50:58 -0400 |
commit | 864bdfb912e372670b5b2541dac9d273a4a7722a (patch) | |
tree | 6f3bd48b2ea92130a2f2b8add2c393cb01151ac7 /drivers/acpi/bus.c | |
parent | 872aad45d6174570dd2e1defc3efee50f2cfcc72 (diff) |
ACPI: Export events via generic netlink
Upon ACPI events, send an "acpi_event" via Generic Netlink.
This is in addition to /proc/acpi/event, which remains intact for now.
Thanks to Jamal for his great help.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/bus.c')
-rw-r--r-- | drivers/acpi/bus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index e5084ececb6..6b2658c9624 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -292,6 +292,10 @@ int acpi_bus_generate_event(struct acpi_device *device, u8 type, int data) if (!device) return -EINVAL; + if (acpi_bus_generate_genetlink_event(device, type, data)) + printk(KERN_WARNING PREFIX + "Failed to generate an ACPI event via genetlink!\n"); + /* drop event on the floor if no one's listening */ if (!event_is_open) return 0; |