From: Michael Thayer <michael.thayer@oracle.com>
To: linux-input@vger.kernel.org
Subject: Getting notification of PS/2 mouse packages
Date: Fri, 05 Aug 2011 13:35:55 +0200 [thread overview]
Message-ID: <1312544155.2426.49.camel@michael-latitude-e6410> (raw)
Hello,
I am looking at writing a driver (it is to be open source, but not for
mainstream kernel inclusion) for a virtual machine-specific input
device. Unfortunately one of the versions of the device I have to
support signals that it has new data available by sending a fake package
to the PS/2 mouse, so I need to be able to get notification of that
somehow. Looking at the kernel source, I see that the i8042 driver
requests IRQ 12 as IRQF_SHARED, and that the kernel always notifies all
registered interrupt handlers of an interrupt, even if one of them
returns IRQ_HANDLED. So it looks like I can just request my own shared
handler for IRQ 12 and always return IRQ_NONE, but still update my data.
However I am not sure whether this is something I can count on to keep
working in future kernel releases. Does anyone on this list know more
about this, or can someone suggest a cleaner way to get the
notifications I need?
Thanks.
Regards,
Michael
--
ORACLE Deutschland B.V. & Co. KG Michael Thayer
Werkstrasse 24 VirtualBox engineering
71384 Weinstadt, Germany mailto:michael.thayer@oracle.com
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603
Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2011-08-05 11:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 11:35 Michael Thayer [this message]
2011-08-05 12:36 ` Getting notification of PS/2 mouse packages Thadeu Lima de Souza Cascardo
2011-08-05 14:10 ` Michael Thayer
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=1312544155.2426.49.camel@michael-latitude-e6410 \
--to=michael.thayer@oracle.com \
--cc=linux-input@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).