~jeffpc/libjeffpc#50: 
slab: add a way to zero obj on allocation

Sometimes, the caller wants a zeroed buffer. Instead of forcing the caller to call memset, add a variant of the alloc function that zeroes the object.

Alternatives:

  • add flags to cache creation to make alloc return zeroed objs
  • add constructor/destructor/reuse callbacks to cache creation similar to what umem has, to initialize/clear/re-init each object
Status
REPORTED
Submitter
~jeffpc
Assigned to
No-one
Submitted
5 months ago
Updated
5 months ago
Labels
feature