1 #include <linux/module.h>
2 #include <linux/slab.h>
5 MODULE_AUTHOR("Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>");
7 static struct kmem_cache *memcache;
9 static int memcache_init(void)
11 memcache = kmem_cache_create("memcache", 32, 0, 0, NULL);
17 static void memcache_exit(void)
19 kmem_cache_destroy(memcache);
22 module_init(memcache_init);
23 module_exit(memcache_exit);