[KJ] memory zeroing macros

Greg KH greg at kroah.com
Sun Feb 11 13:33:10 PST 2007


On Sun, Feb 11, 2007 at 03:34:34PM -0500, burns.ethan at gmail.com wrote:
> On Sun, Feb 11, 2007 at 04:32:11AM -0500, Robert P. J. Day wrote:
> > or maybe this really is just not worth the effort.  who knows?
> 
> I don't think its worth the effort.  Changing the name on this wouldn't add
> any readability.  memset(dest, 0, len) is very clear, in my opinion.  Also,
> there's nothing really error prone about it...  I see no advantage.

Not true at all, 0 and len get switched a lot accidentally.  See the
archives for times people have swept the kernel tree to fix this issue
up.

thanks,

greg k-h



More information about the Kernel-janitors mailing list