Am Dienstag, den 24.08.2010, 16:43 +0800 schrieb Huang Ying:
Again: Fix this.
I don't know what you mean with "because sizeof(struct __kfifo) should
be much smaller that __kfifo->mask + 1 in most cases". I am convinced
that you did not really understand the kfifo code. sizeof(struct
__kfifo) is constant and __kfifo->mask + 1 is the fifo size in elements,
which is not constant. Before you answering study the code first!
And is not acceptable to bload the struct __kfifo, because it will never
need by the most users.
No, you add also code to kfifo_avail, so you enlarge two of the most
used macros. And again:
Rule number one - do not increase the code size if the functionality is
not needed and used!
No, first fix your bugs...
But you waste a clean interface designed together with the community.
I believe you that you need it, but the question is: Is there more users
who need it. And i am sure, there are no more users or very very few.
So for the protocol a big NAK!
- Stefani
--