Re: The concept of work in ni_pcidio.c

On Thu, Jun 06, 2002 at 03:02:16PM -0700, Andrew Tubbiolo wrote:
> 
> Hi All:
> 
> 	I'm working on mods to the ni_pcidio.c driver to support
> handshaking with DMA. While parsing the code in the nidio_interrupt()
> function, I noticed an integer term called "work" that is used to limit
> time spent in a loop that runs so long as the fifo's are not empty and any
> of the group_1 status bits are non zero. What , in this case, is "work",
> and why is it used? I can't find any references to it in Linux Device
> Drivers or any of the National Instruments lit. It's being used to limit
> the amount of data sent to the comedi buffers during data input, I'm
> interested in the thought behind its use.

It's just there to make the device shut up if data arrives
too fast, e.g., if the system is not working properly.  It's
actually very common in device drivers.



dave...

Received on 2002-06-06Z22:11:52