cbuf implementation

"Axel Dörfler" <[email protected]>
Newsgroups gmane.os.openbeos.kernel.devel
Message-ID <79977186697-BeMail@zon>
Hi there,

I just had another look at our cbuf implementation, and on how it is 
used:
it seems that everyone (excluding the ports subsystem) has taken cbuf 
to be more or less a circular buffer. But it is not - it was used 
completely wrong everywhere, and is used very inefficient by the ports 
implementation. That's BTW why the keyboard and mouse drivers don't 
work as expected - it's less obvious in the keyboard driver, as it 
overwrites the same byte over and over again (instead of buffering the 
input), but the mouse driver only writes to byte 1 and reads out 3 
bytes as a packet - go figure.

IOW we don't need our cbuf implementation - we need something that we 
are already using but don't have :)
In case anyone steps up now, you have the job, if not, I'll be doing 
it. Unless I hear something else in the mean time, I start doing it in 
around 5 hours.

Bye,
   Axel.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.