linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* SLUB: Comment kmem_cache_cpu structure
@ 2007-10-30 18:54 Christoph Lameter
  0 siblings, 0 replies; only message in thread
From: Christoph Lameter @ 2007-10-30 18:54 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm

Add some comments explaining the fields of the kmem_cache_cpu structure.

Signed-off-by: Chrsitoph Lameter <clameter@sgi.com>

Index: linux-2.6/include/linux/slub_def.h
===================================================================
--- linux-2.6.orig/include/linux/slub_def.h	2007-10-30 11:51:20.000000000 -0700
+++ linux-2.6/include/linux/slub_def.h	2007-10-30 11:53:48.000000000 -0700
@@ -12,12 +12,12 @@
 #include <linux/kobject.h>
 
 struct kmem_cache_cpu {
-	void **freelist;
-	struct page *page;
-	int node;
-	unsigned int offset;
-	unsigned int objsize;
-	unsigned int objects;
+	void **freelist;	/* Pointer to first free per cpu object */
+	struct page *page;	/* The slab from which we are allocating */
+	int node;		/* The node of the page (or -1 for debug) */
+	unsigned int offset;	/* Freepointer offset (in word units) */
+	unsigned int objsize;	/* Size of an object (from kmem_cache) */
+	unsigned int objects;	/* Objects per slab (from kmem_cache) */
 };
 
 struct kmem_cache_node {

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-30 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-30 18:54 SLUB: Comment kmem_cache_cpu structure Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).