Fixes event_q "get" interfaces to work with UCQs
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 29 Jul 2011 23:35:19 +0000 (16:35 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:05 +0000 (17:36 -0700)
commit32b875dec5c0dc1dbf42d3a03a41099a90e217e1
treec5429841ceac59e047dac50b62b000de866818e1
parent9a1e9fd2b437ac0b6174ec0f0c233815b71a330d
Fixes event_q "get" interfaces to work with UCQs

One of the differences betwene UCQs and BCQs is that UCQs need to be
initialized.  I put some code in the kernel to catch uninitialized UCQs
in _M mode, which shouldn't happen, to help debug this.

For the event and ucq init code, the main difference between the raw and
normal functions is whether or not you manage your own memory.  Doing
one big mmap should be faster if you're making lots of big ev_qs (and
therefore lots of ucqs).
kern/src/event.c
kern/src/ucq.c
tests/ucq.c
user/parlib/event.c
user/parlib/include/event.h
user/parlib/include/ucq.h
user/parlib/ucq.c
user/parlib/vcore.c