Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. static __init int cache_init(void)
  2. {
  3. kmem_cache_create("super_cache", 4096, 0, SLAB_HWCACHE_ALIGN, NULL);
  4. pr_info("Cache allocated: %s", cache->name);
  5. object = kmem_cache_alloc(cache, GFP_KERNEL);
  6. object = "My super dupper object";
  7. pr_info("Value: %s", object);
  8. return 0;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement