Re: [PATCH] ACPI: export acpi events via generic netlink

2007-07-05 Thread Zhang Rui
On Thu, 2007-07-05 at 10:35 +0200, Johannes Berg wrote: > On Thu, 2007-07-05 at 16:24 +0800, Zhang Rui wrote: > > > I missed the discussion about the multicast issues. > > You don't need to reserve a family and group ID for ACPI. I'll rework > > this on your patches.:) > > I don't want to hold yo

Re: [PATCH] ACPI: export acpi events via generic netlink

2007-07-05 Thread Johannes Berg
On Thu, 2007-07-05 at 16:24 +0800, Zhang Rui wrote: > I missed the discussion about the multicast issues. > You don't need to reserve a family and group ID for ACPI. I'll rework > this on your patches.:) I don't want to hold you, don't worry, I can handle it as well. > But I don't know when thes

Re: [PATCH] ACPI: export acpi events via generic netlink

2007-07-05 Thread Zhang Rui
On Wed, 2007-07-04 at 14:01 +0200, Johannes Berg wrote: > On Tue, 2007-07-03 at 15:45 -0400, Len Brown wrote: > > Thanks for including the demo program, Rui, it works for me (tm). > > > > Applied -- with the incremental patch below, which I think > > is correct because the only caller is bus.c, wh

Re: [PATCH] ACPI: export acpi events via generic netlink

2007-07-04 Thread Johannes Berg
On Tue, 2007-07-03 at 15:45 -0400, Len Brown wrote: > Thanks for including the demo program, Rui, it works for me (tm). > > Applied -- with the incremental patch below, which I think > is correct because the only caller is bus.c, which is part of > the base kernel, not a module. Dang, mail crossi

Re: [PATCH] ACPI: export acpi events via generic netlink

2007-07-04 Thread Johannes Berg
On Tue, 2007-06-19 at 11:40 +0800, Zhang Rui wrote: > +/* attributes of acpi_genl_family */ > +enum { > + ACPI_GENL_ATTR_UNSPEC, > + ACPI_GENL_ATTR_EVENT, /* ACPI event info needed by user space */ > + __ACPI_GENL_ATTR_MAX, > +}; > +#define ACPI_GENL_ATTR_MAX (__ACPI_GENL_ATTR_MAX -

Re: [PATCH] ACPI: export acpi events via generic netlink

2007-07-03 Thread Len Brown
Thanks for including the demo program, Rui, it works for me (tm). Applied -- with the incremental patch below, which I think is correct because the only caller is bus.c, which is part of the base kernel, not a module. Modules will call acpi_bus_generate_event(), not acpi_bus_generate_genetlink_ev

[PATCH] ACPI: export acpi events via generic netlink

2007-06-18 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Export ACPI events via Generic Netlink. An "acpi_event" genetlink family message is sent when an ACPI event is generated. Note: The behavior of how ACPI event works nowadays is not changed. Use genetlink to export ACPI event instead of /proc/a