[PATCH] Documentation: update CodingStyle memory allocators

From: Randy Dunlap
Date: Wed Jul 06 2011 - 14:28:24 EST


From: Jesper Juhl <jj@xxxxxxxxxxxxx>

The list of available general purpose memory allocators in
Documentation/CodingStyle chapter 14 is incomplete. This patch adds
the missing vzalloc() to the list.

Signed-off-by: Jesper Juhl <jj@xxxxxxxxxxxxx>
Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
Documentation/CodingStyle | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- lnx-30-rc4.orig/Documentation/CodingStyle
+++ lnx-30-rc4/Documentation/CodingStyle
@@ -680,8 +680,8 @@ ones already enabled by DEBUG.
Chapter 14: Allocating memory

The kernel provides the following general purpose memory allocators:
-kmalloc(), kzalloc(), kcalloc(), and vmalloc(). Please refer to the API
-documentation for further information about them.
+kmalloc(), kzalloc(), kcalloc(), vmalloc(), and vzalloc(). Please refer to
+the API documentation for further information about them.

The preferred form for passing a size of a struct is the following:

--
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/