Re: memset as memzero

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert P. J. Day
Date: Saturday, September 22, 2007 - 1:48 am

On Sat, 22 Sep 2007, Cyrill Gorcunov wrote:


i brought up this issue on the KJ list once upon a time:

https://lists.linux-foundation.org/pipermail/kernel-janitors/2007-February/017847.html

and there didn't seem to be much enthusiasm for it.

  however, i am still curious why there isn't more use of the
already-defined "clear_page" macro.  most architectures appear to
define it:

$ grep -r "define.*clear_page" include

but there are still numerous explicit calls to memset() to zero a
chunk of memory that is exactly PAGE_SIZE in size.  just an
observation.

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
memset as memzero, Cyrill Gorcunov, (Sat Sep 22, 1:33 am)
Re: memset as memzero, Robert P. J. Day, (Sat Sep 22, 1:48 am)
Re: memset as memzero, Cyrill Gorcunov, (Sat Sep 22, 2:35 am)
Re: memset as memzero, Robert P. J. Day, (Sat Sep 22, 2:55 am)
Re: memset as memzero, Cyrill Gorcunov, (Sat Sep 22, 3:15 am)
Re: memset as memzero, Linus Torvalds, (Sat Sep 22, 11:53 am)
Re: memset as memzero, Bernd Eckenfels, (Sat Sep 22, 12:25 pm)
Re: memset as memzero, Cyrill Gorcunov, (Sat Sep 22, 12:32 pm)
Re: memset as memzero, Arjan van de Ven, (Sat Sep 22, 12:46 pm)
Re: memset as memzero, Dave Jones, (Sun Sep 23, 8:32 am)
Re: memset as memzero, Arnaldo Carvalho de Melo, (Sun Sep 23, 9:07 am)
Re: memset as memzero, Robert P. J. Day, (Sun Sep 23, 9:33 am)
Re: memset as memzero, Arnaldo Carvalho de Melo, (Sun Sep 23, 9:46 am)
Re: memset as memzero, Linus Torvalds, (Sun Sep 23, 10:05 am)
Re: memset as memzero, Willy Tarreau, (Sun Sep 23, 11:46 am)