Lines Matching refs:kmem_cache
41 struct kmem_cache *kmem_cache;
79 unsigned int kmem_cache_size(struct kmem_cache *s)
89 struct kmem_cache *s;
108 "kmem_cache of name '%s' already exists\n", name);
151 int slab_unmergeable(struct kmem_cache *s)
173 struct kmem_cache *find_mergeable(unsigned int size, unsigned int align,
176 struct kmem_cache *s;
217 static struct kmem_cache *create_cache(const char *name,
222 struct kmem_cache *s;
237 s = kmem_cache_zalloc(kmem_cache, GFP_KERNEL);
249 kmem_cache_free(kmem_cache, s);
269 struct kmem_cache *__kmem_cache_create_args(const char *name,
274 struct kmem_cache *s = NULL;
357 static struct kmem_cache *kmem_buckets_cache __ro_after_init;
459 * For a given kmem_cache, kmem_cache_destroy() should only be called
464 static void kmem_cache_release(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)
552 int kmem_cache_shrink(struct kmem_cache *cachep)
645 void __init create_boot_cache(struct kmem_cache *s, const char *name,
676 static struct kmem_cache *__init create_kmalloc_cache(const char *name,
680 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT);
1043 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
1059 void cache_random_seq_destroy(struct kmem_cache *cachep)
1098 static void cache_show(struct kmem_cache *s, struct seq_file *m)
1118 struct kmem_cache *s = list_entry(p, struct kmem_cache, list);
1128 struct kmem_cache *s;