Added API to append data into a circular buffer
authorDavide Libenzi <dlibenzi@google.com>
Fri, 6 Nov 2015 01:30:24 +0000 (17:30 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 18 Nov 2015 17:54:57 +0000 (09:54 -0800)
commite121587d7f5e7a7368214fe72418c5d5af51fa1a
tree21c7c59fd28d18dc5a44e284492632d8b13824c2
parentba43d53988252ffec1ae338d969d7b06290d0a22
Added API to append data into a circular buffer

Added API to append data into a circular buffer. The buffer data is
allocated once at init time, and no more allocations happen after that.

Signed-off-by: Davide Libenzi <dlibenzi@google.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/circular_buffer.h [new file with mode: 0644]
kern/lib/Kbuild
kern/lib/circular_buffer.c [new file with mode: 0644]