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

From: J.A. Magallon
Date: Thu Sep 11 2003 - 17:01:05 EST



On 09.11, Jamie Lokier wrote:
> viro@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
> > Bad choice of name - too easy to confuse with kmalloc().
>
> kmalloc_and_zero() would be much clearer.
>

Why not kcalloc() ?

--
J.A. Magallon <jamagallon@xxxxxxx> \ Software is like sex:
werewolf.able.es \ It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.23-pre2-jam1m (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk))
-
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/