[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1262172744.10998.3.camel@wall-e>
Date: Wed, 30 Dec 2009 12:32:24 +0100
From: Stefani Seibold <stefani@...bold.net>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: Vikram Dhillon <dhillonv10@...il.com>,
Andi Kleen <andi@...stfloor.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"akpm@...l.org" <akpm@...l.org>
Subject: Re: [PATCH] [0/6] kfifo fixes/improvements
Am Mittwoch, den 30.12.2009, 03:07 -0800 schrieb Dmitry Torokhov:
> On Wed, Dec 30, 2009 at 11:52:15AM +0100, Stefani Seibold wrote:
> > Am Mittwoch, den 30.12.2009, 02:43 -0800 schrieb Dmitry Torokhov:
> > > On Wed, Dec 30, 2009 at 10:29:50AM +0100, Stefani Seibold wrote:
> > > >
> > > I do not need to try the new behavior - you explained it quite well.
> > > You changed the old API to allow processing multiple records at a time
> > > and it does not quite work the way you want with Andi's patch. Now the
> >
> > Wrong, i did not change the behavior of the old API. It is exactly the
> > same at is was!!!!
>
> You said:
>
> "The kfifo_in() and kfifo_out() len parameter is than in the meaning
> of elements not bytes."
>
> This is the change from the existing API which works with _bytes_:
>
> /**
> * kfifo_in - puts some data into the FIFO
> * @fifo: the fifo to be used.
> * @from: the data to be added.
> * @len: the length of the data to be added.
> *
> * This function copies at most @len bytes from the @from buffer into
> ^^^^^^^^^^
> * the FIFO depending on the free space, and returns the number of
> * bytes copied.
>
>
There is no change!!!!!! For a byte type fifo, which is the old orig
type, the number of elements is exactly the number of bytes.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists