[PATCH] KMEM_CACHE() simplify slab cache creation

2007-04-20 Thread Christoph Lameter
This patch provides a new macro KMEM_CACHE(, ) to simplify slab creation. KMEM_CACHE creates a slab with the name of the struct, with the size of the struct and with the alignment of the struct. Additional slab flags may be specified if necessary. Example struct test_slab { int

[PATCH] KMEM_CACHE() simplify slab cache creation

2007-04-20 Thread Christoph Lameter
This patch provides a new macro KMEM_CACHE(struct, flags) to simplify slab creation. KMEM_CACHE creates a slab with the name of the struct, with the size of the struct and with the alignment of the struct. Additional slab flags may be specified if necessary. Example struct test_slab {