<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/acpi/event.c, branch linux-2.6.31.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.31.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.31.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2009-02-06T07:56:36Z</updated>
<entry>
<title>netlink: change return-value logic of netlink_broadcast()</title>
<updated>2009-02-06T07:56:36Z</updated>
<author>
<name>Pablo Neira Ayuso</name>
</author>
<published>2009-02-06T07:56:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff491a7334acfd74e515c896632e37e401f52676'/>
<id>urn:sha1:ff491a7334acfd74e515c896632e37e401f52676</id>
<content type='text'>
Currently, netlink_broadcast() reports errors to the caller if no
messages at all were delivered:

1) If, at least, one message has been delivered correctly, returns 0.
2) Otherwise, if no messages at all were delivered due to skb_clone()
   failure, return -ENOBUFS.
3) Otherwise, if there are no listeners, return -ESRCH.

With this patch, the caller knows if the delivery of any of the
messages to the listeners have failed:

1) If it fails to deliver any message (for whatever reason), return
   -ENOBUFS.
2) Otherwise, if all messages were delivered OK, returns 0.
3) Otherwise, if no listeners, return -ESRCH.

In the current ctnetlink code and in Netfilter in general, we can add
reliable logging and connection tracking event delivery by dropping the
packets whose events were not successfully delivered over Netlink. Of
course, this option would be settable via /proc as this approach reduces
performance (in terms of filtered connections per seconds by a stateful
firewall) but providing reliable logging and event delivery (for
conntrackd) in return.

This patch also changes some clients of netlink_broadcast() that
may report ENOBUFS errors via printk. This error handling is not
of any help. Instead, the userspace daemons that are listening to
those netlink messages should resync themselves with the kernel-side
if they hit ENOBUFS.

BTW, netlink_broadcast() clients include those that call
cn_netlink_send(), nlmsg_multicast() and genlmsg_multicast() since they
internally call netlink_broadcast() and return its error value.

Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>acpi: use non-racy method for proc entries creation</title>
<updated>2008-04-29T15:06:22Z</updated>
<author>
<name>Denis V. Lunev</name>
</author>
<published>2008-04-29T08:02:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cf7acfab032ff262f42954328cdfd20a5d9aaaac'/>
<id>urn:sha1:cf7acfab032ff262f42954328cdfd20a5d9aaaac</id>
<content type='text'>
Use proc_create()/proc_create_data() to make sure that -&gt;proc_fops and -&gt;data
be setup before gluing PDE to main tree.

Add correct -&gt;owner to proc_fops to fix reading/module unloading race.

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Cc: Len Brown &lt;lenb@kernel.org&gt;
Cc: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>ACPI: static acpi_chain_head</title>
<updated>2008-02-14T06:04:18Z</updated>
<author>
<name>Adrian Bunk</name>
</author>
<published>2008-02-13T21:29:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c8e773fa4f6a999a80d9fa3836f412e259ab6fa1'/>
<id>urn:sha1:c8e773fa4f6a999a80d9fa3836f412e259ab6fa1</id>
<content type='text'>
Signed-off-by: Adrian Bunk &lt;bunk@kernel.org&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: create notifier chain to get hotkey events to graphics driver</title>
<updated>2008-02-07T08:22:57Z</updated>
<author>
<name>Zhang Rui</name>
</author>
<published>2008-01-25T06:48:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ee85241fdaab358dff1d8647f20a478cfa512a1'/>
<id>urn:sha1:9ee85241fdaab358dff1d8647f20a478cfa512a1</id>
<content type='text'>
Kernel mode graphics drivers need this ACPI notifier chaine
so that they can get notified upon hotkey events.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: fix CONFIG_NET=n acpi_bus_generate_netlink_event build failure</title>
<updated>2007-09-03T15:15:11Z</updated>
<author>
<name>Henrique de Moraes Holschuh</name>
</author>
<published>2007-09-03T03:03:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=66baf327ae5d4c17e75d1f501145e79eaeeaf649'/>
<id>urn:sha1:66baf327ae5d4c17e75d1f501145e79eaeeaf649</id>
<content type='text'>
drivers/acpi/event.c:243: error: 'acpi_generate_netlink_event' undeclared
here (not in a function)

Signed-off-by: Henrique de Moraes Holschuh &lt;hmh@hmh.eng.br&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: fix ia64 allnoconfig build</title>
<updated>2007-08-24T07:06:33Z</updated>
<author>
<name>Len Brown</name>
</author>
<published>2007-08-24T07:06:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3e069ee0c30d6f28b79e409ef2df1ffa427897ae'/>
<id>urn:sha1:3e069ee0c30d6f28b79e409ef2df1ffa427897ae</id>
<content type='text'>
drivers/acpi/event.c:238: error: conflicting types for ‘acpi_bus_generate_netlink_event’
include/acpi/acpi_bus.h:324: error: previous declaration of ‘acpi_bus_generate_netlink_event’ was here

Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: Schedule /proc/acpi/event for removal</title>
<updated>2007-08-23T19:20:26Z</updated>
<author>
<name>Len Brown</name>
</author>
<published>2007-08-23T19:20:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14e04fb34ffa82ee61ae69f98d8fca12d2e8e31c'/>
<id>urn:sha1:14e04fb34ffa82ee61ae69f98d8fca12d2e8e31c</id>
<content type='text'>
Schedule /proc/acpi/event for removal in 6 months.

Re-name acpi_bus_generate_event() to acpi_bus_generate_proc_event()
to make sure there is no confusion that it is for /proc/acpi/event only.

Add CONFIG_ACPI_PROC_EVENT to allow removal of /proc/acpi/event.
There is no functional change if CONFIG_ACPI_PROC_EVENT=y

Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: don't duplicate input events on netlink</title>
<updated>2007-08-23T18:27:23Z</updated>
<author>
<name>Zhang Rui</name>
</author>
<published>2007-08-22T17:24:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=962ce8ca0604af0c3c5609f7613d4ec5fcfac623'/>
<id>urn:sha1:962ce8ca0604af0c3c5609f7613d4ec5fcfac623</id>
<content type='text'>
The previous events patch added a netlink event for every
user of the legacy /proc/acpi/event interface.

However, some users of /proc/acpi/event are really input events,
and they already report their events via the input layer.

Introduce a new interface, acpi_bus_generate_netlink_event(),
which is explicitly called by devices that want to repoprt
events via netlink.  This allows the input-like events
to opt-out of generating netlink events.  In summary:

events that are sent via netlink:
	ac/battery/sbs
	thermal
	processor
	thinkpad_acpi dock/bay

events that are sent via input layer:
	button
	video hotkey
	thinkpad_acpi hotkey
	asus_acpi/asus-laptop hotkey
	sonypi/sonylaptop

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: static</title>
<updated>2007-08-12T02:28:34Z</updated>
<author>
<name>Adrian Bunk</name>
</author>
<published>2007-08-10T20:45:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e13d87473284131a7ead8121d5d29345101f68a4'/>
<id>urn:sha1:e13d87473284131a7ead8121d5d29345101f68a4</id>
<content type='text'>
Make the needlessly global "acpi_event_seqnum" static.

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: export ACPI events via acpi_mc_group multicast group</title>
<updated>2007-07-22T05:05:16Z</updated>
<author>
<name>Zhang Rui</name>
</author>
<published>2007-07-20T08:41:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c977a453ed62396d067b75f3f272b3fb1ea3acc'/>
<id>urn:sha1:9c977a453ed62396d067b75f3f272b3fb1ea3acc</id>
<content type='text'>
This is an incremental patch for the recent genetlink
multicast changes.

Now ACPI events are exported via generic netlink multicast group.

Thanks for Johannes' help on developing this patch

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
</feed>
