intermezzOS / kernel

A hobby operating system, in Rust
http://intermezzos.github.io/
Apache License 2.0
1.39k stars 90 forks source link

Introduce a ringbuffer #51

Closed steveklabnik closed 7 years ago

steveklabnik commented 8 years ago

This is the first step towards handling keyboards properly.

steveklabnik commented 8 years ago

Also, I used an Option to try and keep things safe; this can be done with unsafe code as well, and it's more efficient, since we have an extra byte for the tag. But I think that's fine.

nxnfufunezn commented 8 years ago

Nice idea to have ring buffer here..

corincerami commented 8 years ago

I had never heard of a ring buffer before reading this PR, so I'm not super knowledgable, but having read up on it, this seems 👍

steveklabnik commented 7 years ago

I might come back to this at some point, but this PR isn't gonna get merged. Closing!