Lines Matching defs:kmem_cache

10  * Common fields provided in kmem_cache by all slab allocators
13 * provided in kmem_cache_common in their definition of kmem_cache.
17 * separate allocations in the kmem_cache structure of SLAB and
20 struct kmem_cache {
75 extern struct kmem_cache *kmem_cache;
89 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
95 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
97 struct kmem_cache *create_kmalloc_cache(const char *name, unsigned int size,
100 extern void create_boot_cache(struct kmem_cache *, const char *name,
104 int slab_unmergeable(struct kmem_cache *s);
105 struct kmem_cache *find_mergeable(unsigned size, unsigned align,
108 struct kmem_cache *
115 static inline struct kmem_cache *
169 bool __kmem_cache_empty(struct kmem_cache *);
170 int __kmem_cache_shutdown(struct kmem_cache *);
171 void __kmem_cache_release(struct kmem_cache *);
172 int __kmem_cache_shrink(struct kmem_cache *);
173 void slab_kmem_cache_release(struct kmem_cache *);
191 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
192 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
202 void __kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
203 int __kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **);
205 static inline int cache_vmstat_idx(struct kmem_cache *s)
217 extern void print_tracking(struct kmem_cache *s, void *object);
219 static inline void print_tracking(struct kmem_cache *s, void *object)
229 static inline bool kmem_cache_debug_flags(struct kmem_cache *s, slab_flags_t flags)
257 int memcg_alloc_page_obj_cgroups(struct page *page, struct kmem_cache *s,
266 static inline size_t obj_full_size(struct kmem_cache *s)
278 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s,
317 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s,
351 static inline void memcg_slab_free_hook(struct kmem_cache *s_orig,
354 struct kmem_cache *s;
401 struct kmem_cache *s, gfp_t gfp)
410 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s,
417 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s,
424 static inline void memcg_slab_free_hook(struct kmem_cache *s,
430 static inline struct kmem_cache *virt_to_cache(const void *obj)
442 struct kmem_cache *s)
449 struct kmem_cache *s)
458 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x)
460 struct kmem_cache *cachep;
474 static inline size_t slab_ksize(const struct kmem_cache *s)
504 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s,
524 static inline void slab_post_alloc_hook(struct kmem_cache *s,
575 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node)
603 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
606 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
608 void cache_random_seq_destroy(struct kmem_cache *cachep);
610 static inline int cache_random_seq_create(struct kmem_cache *cachep,
615 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { }
618 static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c)
630 static inline bool slab_want_init_on_free(struct kmem_cache *c)