sane-project-website/old-archive/1999-03/0104.html

78 wiersze
3.5 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Tue Mar 9 19:14:41 1999 PST" -->
<!-- sent="Wed, 10 Mar 1999 01:26:30 +0100 (MET)" -->
<!-- name="becka@rz.uni-duesseldorf.de" -->
<!-- email="becka@rz.uni-duesseldorf.de" -->
<!-- subject="Re: action on IRQs outside the kernel" -->
<!-- id="m10KWpS-000CFmC@hades.beck-sw.de" -->
<!-- inreplyto="99030816552000.00251@wh2-229" -->
<title>sane-devel: Re: action on IRQs outside the kernel</title>
<h1>Re: action on IRQs outside the kernel</h1>
<a href="mailto:becka@rz.uni-duesseldorf.de"><i>becka@rz.uni-duesseldorf.de</i></a><br>
<i>Wed, 10 Mar 1999 01:26:30 +0100 (MET)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#104">[ date ]</a><a href="index.html#104">[ thread ]</a><a href="subject.html#104">[ subject ]</a><a href="author.html#104">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0105.html">ðàÿ: "Re: microtek ScanMaker X6 (EL)"</a>
<li> <b>Previous message:</b> <a href="0103.html">John Brush: "Would like help w/Microtek E3, please"</a>
<li> <b>In reply to:</b> <a href="0094.html">Andre Herms: "action on IRQs outside the kernel"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi !<br>
<p>
<i>&gt; I have a question on Linux' IRQ handling. Is there a posibility </i><br>
<i>&gt; to recognize an IRQ by an user process. </i><br>
<p>
It is in theory possible, but I wouldn't recommend it.<br>
<p>
<i>&gt; I wrote a driver for a scanner with controller card that handles data</i><br>
<i>&gt; transmision via IRQ. So I wrote a device driver for the linux kernel. </i><br>
<p>
That's what I'd do (have done) either.<br>
<p>
<i>&gt; This is not the finest way because my sane backend depends on this </i><br>
<i>&gt; special kernel driver. </i><br>
<p>
Well - you might want to think about having a look at LHII which was<br>
designed for the old handscanner devices (available in the logiscan<br>
package, that should be on sunsite and tsx), and the SANE API (which you<br>
probably know well), and we can try to make LHII-2 aka SANE-II (hmm -<br>
I like the abigous II :-) for such cases ...<br>
<p>
<i>&gt; Is it possible to get an IRQ from inside of my backend?</i><br>
<p>
First of all: There is _no_ stock kernel feature to do this.<br>
The problem is, that you need to clear the interrupt condition, and this<br>
requires knowing the issueing card well enough, inside the kernel.<br>
<p>
So basically you'd still need at least a minimal card-specific driver.<br>
This driver could then of course wake up a process or send a signal to<br>
it, but I don't see much gain over some nice driver.<br>
<p>
Usermode has lots of ugly issues for these things like pages being swapped<br>
out (the handler ...), the process not being scheduled for too long, ...<br>
<p>
CU, ANdy<br>
<p>
<pre>
--
= Andreas Beck | Email : &lt;<a href="mailto:andreas.beck@ggi-project.org">andreas.beck@ggi-project.org</a>&gt; =
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0105.html">ðàÿ: "Re: microtek ScanMaker X6 (EL)"</a>
<li> <b>Previous message:</b> <a href="0103.html">John Brush: "Would like help w/Microtek E3, please"</a>
<li> <b>In reply to:</b> <a href="0094.html">Andre Herms: "action on IRQs outside the kernel"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>