Re: RFC: turn kmalloc+memset(,0,) into kcalloc

Pekka Enberg
2005-04-06T13:10:58Z

Hi,

On Apr 6, 2005 3:15 PM, Paulo Marques <pmarques@grupopie.com> wrote:
> However "calloc" is the standard C interface for doing this, so it makes
> some sense to use it here as well... :(

I initally submitted kcalloc() with just one parameter but Arjan
wanted it to be similar to standard calloc() so we could check for
overflows. I don't see any reason not to introduce kzalloc() for the
common case you mentioned (as suggested by Denis).

Pekka