Re: device driver race conditions problems (kernel 2.4)
From: Norm Dresner (ndrez_at_att.net)
Date: 08/28/04
- Next message: mjt: "Re: Data structure in system call/user program"
- Previous message: Paulo Garcia: "Re: device driver race conditions problems (kernel 2.4)"
- In reply to: Paulo Garcia: "device driver race conditions problems (kernel 2.4)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 28 Aug 2004 13:15:19 GMT
The simplest way to manage multiple, identical cards that have to be
serviced regularly (you say that you have a 2 ms interrupt from your
"firmware") is to have the single driver poll each of the cards to see if
they need servicing during that interval. You can't get any race conditions
from multiple interrupts this way.
Yes, I know that you can't easily get a 2 ms interrupt in software from a
normal linux kernel, but you can do it very easily with the freeware version
of real-time linux. If you in fact have a hardware interrupt at the 2 ms
interval that you've mentioned, then you can use this in normal linux
forever as a timing mechanism.
Norm
- Next message: mjt: "Re: Data structure in system call/user program"
- Previous message: Paulo Garcia: "Re: device driver race conditions problems (kernel 2.4)"
- In reply to: Paulo Garcia: "device driver race conditions problems (kernel 2.4)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|