Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static __init int cache_init(void)
- {
- kmem_cache_create("super_cache", 4096, 0, SLAB_HWCACHE_ALIGN, NULL);
- pr_info("Cache allocated: %s", cache->name);
- object = kmem_cache_alloc(cache, GFP_KERNEL);
- object = "My super dupper object";
- pr_info("Value: %s", object);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement