Re: comedi-cvs buffer handling not SMP safe?

Message-Id: <20020830215414.8354DDB68_at_newimage.com>
Date: Fri, 30 Aug 2002 17:54:14 -0400 (EDT)
From: rhk_at_newimage.com (Apache User)

On Fri, Aug 30, 2002, ds_at_schleef.org wrote:

> The simple way to fix the problem is to make the buffer larger.  I
> generally have little difficulty with 64 kB.

I have tried pushing the buffer up to 1 Mb with the exact same results. I am sampling
at 1 million per second, so that should have allowed a 1/2 second buffer, and yet the
program failed within the first 8000 samples. I put a printk in the driver to verify it.

I think the logic is a little off in this driver, as it's the only driver in comedi
that is checking against buf_free_count.

-Ray

Received on 2002-08-30Z20:54:23