Lines Matching defs:kmem_cache
40 struct kmem_cache *kmem_cache;
85 unsigned int kmem_cache_size(struct kmem_cache *s)
140 int slab_unmergeable(struct kmem_cache *s)
162 struct kmem_cache *find_mergeable(unsigned int size, unsigned int align,
165 struct kmem_cache *s;
209 static struct kmem_cache *create_cache(const char *name,
213 struct kmem_cache *root_cache)
215 struct kmem_cache *s;
222 s = kmem_cache_zalloc(kmem_cache, GFP_KERNEL);
244 kmem_cache_free(kmem_cache, s);
277 struct kmem_cache *
284 struct kmem_cache *s = NULL;
391 struct kmem_cache *
402 * For a given kmem_cache, kmem_cache_destroy() should only be called
410 static void kmem_cache_release(struct kmem_cache *s)
416 static void kmem_cache_release(struct kmem_cache *s)
425 struct kmem_cache *s, *s2;
430 * through RCU and the associated kmem_cache are dereferenced
452 static int shutdown_cache(struct kmem_cache *s)
473 void slab_kmem_cache_release(struct kmem_cache *s)
477 kmem_cache_free(kmem_cache, s);
480 void kmem_cache_destroy(struct kmem_cache *s)
517 int kmem_cache_shrink(struct kmem_cache *cachep)
629 void __init create_boot_cache(struct kmem_cache *s, const char *name,
661 static struct kmem_cache *__init create_kmalloc_cache(const char *name,
665 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT);
676 struct kmem_cache *
725 * Find the kmem_cache structure that serves a given size of
728 struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags, unsigned long caller)
1010 struct kmem_cache *s;
1060 struct kmem_cache *s;
1115 void *kmalloc_trace(struct kmem_cache *s, gfp_t gfpflags, size_t size)
1127 void *kmalloc_node_trace(struct kmem_cache *s, gfp_t gfpflags,
1221 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
1237 void cache_random_seq_destroy(struct kmem_cache *cachep)
1288 static void cache_show(struct kmem_cache *s, struct seq_file *m)
1309 struct kmem_cache *s = list_entry(p, struct kmem_cache, list);
1319 struct kmem_cache *s;
1510 int should_failslab(struct kmem_cache *s, gfp_t gfpflags)