Skip to content

Commit

Permalink
Explain kmem_cache_cpu fields
Browse files Browse the repository at this point in the history
Add some comments explaining the fields of the kmem_cache_cpu structure.

Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Christoph Lameter committed Feb 4, 2008
1 parent ba84c73 commit da89b79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/linux/slub_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
#include <linux/kobject.h>

struct kmem_cache_cpu {
void **freelist;
struct page *page;
int node;
unsigned int offset;
unsigned int objsize;
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) */
};

struct kmem_cache_node {
Expand Down

0 comments on commit da89b79

Please sign in to comment.