Re: [RFC, 2.6] a simple FIFO implementation

From: Duncan Sands
Date: Fri Sep 17 2004 - 07:42:21 EST


> + * Note that with only one concurrent reader and one concurrent
> + * writer, you don't need extra locking to use these functions.
^^^^^ which functions? (ambiguous)
And what does "extra locking" mean?

> + len = min(len, fifo->size - fifo->in + fifo->out);

After all, since you are reading both in and out here, some kind of
locking is needed.

Ciao,

Duncan.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/