Add kmalloc_array() interface
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Nov 2015 21:04:08 +0000 (16:04 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Nov 2015 21:05:31 +0000 (16:05 -0500)
commit0878a40090ea4208a8bb6528dfe934f80f08e72a
tree5a014bbf307823c4bf65ead9d550d3d8418cc760
parent2fa42319139e4cc5ca853546363f84443d0ead00
Add kmalloc_array() interface

One thing to be careful of is that these functions can fail and return 0,
regardless of your kmalloc flags.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/kmalloc.h
kern/src/kreallocarray.c