Re: [RFC][PATCH] kmalloc + memset(foo, 0, bar) = kmalloc0

From: Jamie Lokier
Date: Thu Sep 11 2003 - 12:11:33 EST


viro@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
> Bad choice of name - too easy to confuse with kmalloc().

kmalloc_and_zero() would be much clearer.

It opens the way for a pool of pre-zeroed pages, too. We know that
improves preformance on some architectures.

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/