Lines Matching defs:kmem_cache

36 struct kmem_cache *kmem_cache;
81 unsigned int kmem_cache_size(struct kmem_cache *s)
105 void __kmem_cache_free_bulk(struct kmem_cache *s, size_t nr, void **p)
117 int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr,
164 int slab_unmergeable(struct kmem_cache *s)
184 struct kmem_cache *find_mergeable(unsigned int size, unsigned int align,
187 struct kmem_cache *s;
231 static struct kmem_cache *create_cache(const char *name,
235 struct kmem_cache *root_cache)
237 struct kmem_cache *s;
244 s = kmem_cache_zalloc(kmem_cache, GFP_KERNEL);
267 kmem_cache_free(kmem_cache, s);
299 struct kmem_cache *
306 struct kmem_cache *s = NULL;
404 struct kmem_cache *
416 struct kmem_cache *s, *s2;
421 * through RCU and the associated kmem_cache are dereferenced
445 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)
519 int kmem_cache_shrink(struct kmem_cache *cachep)
540 void __init create_boot_cache(struct kmem_cache *s, const char *name,
570 struct kmem_cache *__init create_kmalloc_cache(const char *name,
574 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT);
585 struct kmem_cache *
629 * Find the kmem_cache structure that serves a given size of
632 struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags)
795 struct kmem_cache *s = kmalloc_caches[KMALLOC_NORMAL][i];
878 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
898 void cache_random_seq_destroy(struct kmem_cache *cachep)
949 static void cache_show(struct kmem_cache *s, struct seq_file *m)
970 struct kmem_cache *s = list_entry(p, struct kmem_cache, list);
980 struct kmem_cache *s, *s2;
1191 int should_failslab(struct kmem_cache *s, gfp_t gfpflags)