"memset(..., 0, PAGE_SIZE)" replaceable by "clear_page()"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  i recall a discussion about this once upon a time, but there are
numerous invocations of the form:

  memset(addr, 0, PAGE_SIZE)

for which *some* of those could probably be replaced by a call to
clear_page() instead.  just to see the possibilities:

grep -Er "memset ?\([^,]+, ?0, ?PAGE_SIZE\)" ${DIR} | grep -v "#define clear_page" .

  if someone wanted to poke around there, they're welcome to it.

rday
--

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

Home page:                                         http://crashcourse.ca
Fedora Cookbook:    http://crashcourse.ca/wiki/index.php/Fedora_Cookbook
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux