linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: linux-acpi@vger.kernel.org
Subject: [RFC] Notification on method execution
Date: Sat, 15 Sep 2007 21:49:23 +0100	[thread overview]
Message-ID: <20070915204923.GA27604@srcf.ucam.org> (raw)

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

             reply	other threads:[~2007-09-15 20:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-15 20:49 Matthew Garrett [this message]
2007-09-16 14:38 ` [RFC] Notification on method execution Henrique de Moraes Holschuh
2007-09-17  1:55   ` Matthew Garrett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070915204923.GA27604@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=linux-acpi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).