linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Notification on method execution
@ 2007-09-15 20:49 Matthew Garrett
  2007-09-16 14:38 ` Henrique de Moraes Holschuh
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Garrett @ 2007-09-15 20:49 UTC (permalink / raw)
  To: linux-acpi

For certain drivers (such as the Thinkpad ACPI driver[1]), it would be 
helpful to be able to get notifications when a method is executed. I'd 
propose adding a call like acpi_method_notify, extending the method 
field to contain an extra flag for notifications and a callback, having 
acpi_aml_execute check this before executing the methods and perhaps 
checking the return code to decide whether to continue executing the 
method or not (would potentially allow overriding methods, though I'm 
not convinced it's a good idea). Does this sound basically sane? If so, 
I'll do a patch.

[1] Various Thinkpads make predictable method calls when hotkeys are 
pressed, but make no notifications. Hooking into those methods would 
allow those keys to be caught without the requirement to repeatedly poll 
the hardware to see if there's been an update.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-17  1:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-15 20:49 [RFC] Notification on method execution Matthew Garrett
2007-09-16 14:38 ` Henrique de Moraes Holschuh
2007-09-17  1:55   ` Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).