kopia lustrzana https://gitlab.com/sane-project/website
78 wiersze
3.5 KiB
HTML
78 wiersze
3.5 KiB
HTML
<!-- 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>> I have a question on Linux' IRQ handling. Is there a posibility </i><br>
|
||
<i>> 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>> I wrote a driver for a scanner with controller card that handles data</i><br>
|
||
<i>> 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>> This is not the finest way because my sane backend depends on this </i><br>
|
||
<i>> 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>> 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 : <<a href="mailto:andreas.beck@ggi-project.org">andreas.beck@ggi-project.org</a>> =
|
||
<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>
|