Lines Matching refs:kmem_cache
19 struct kmem_cache { struct
72 extern struct kmem_cache *kmem_cache;
83 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
88 extern int __kmem_cache_create(struct kmem_cache *, unsigned long flags);
90 extern struct kmem_cache *create_kmalloc_cache(const char *name, size_t size,
92 extern void create_boot_cache(struct kmem_cache *, const char *name,
95 int slab_unmergeable(struct kmem_cache *s);
96 struct kmem_cache *find_mergeable(size_t size, size_t align,
99 struct kmem_cache *
107 static inline struct kmem_cache *
147 int __kmem_cache_shutdown(struct kmem_cache *);
148 void __kmem_cache_release(struct kmem_cache *);
149 int __kmem_cache_shrink(struct kmem_cache *);
150 void slab_kmem_cache_release(struct kmem_cache *);
168 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
169 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
179 void __kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
180 int __kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **);
191 static inline bool is_root_cache(struct kmem_cache *s) in is_root_cache()
196 static inline bool slab_equal_or_root(struct kmem_cache *s, in slab_equal_or_root()
197 struct kmem_cache *p) in slab_equal_or_root()
207 static inline const char *cache_name(struct kmem_cache *s) in cache_name()
219 static inline struct kmem_cache *
220 cache_from_memcg_idx(struct kmem_cache *s, int idx) in cache_from_memcg_idx()
222 struct kmem_cache *cachep; in cache_from_memcg_idx()
239 static inline struct kmem_cache *memcg_root_cache(struct kmem_cache *s) in memcg_root_cache()
248 struct kmem_cache *s) in memcg_charge_slab()
269 struct kmem_cache *s) in memcg_uncharge_slab()
281 extern void slab_init_memcg_params(struct kmem_cache *);
288 static inline bool is_root_cache(struct kmem_cache *s) in is_root_cache()
293 static inline bool slab_equal_or_root(struct kmem_cache *s, in slab_equal_or_root()
294 struct kmem_cache *p) in slab_equal_or_root()
299 static inline const char *cache_name(struct kmem_cache *s) in cache_name()
304 static inline struct kmem_cache *
305 cache_from_memcg_idx(struct kmem_cache *s, int idx) in cache_from_memcg_idx()
310 static inline struct kmem_cache *memcg_root_cache(struct kmem_cache *s) in memcg_root_cache()
316 struct kmem_cache *s) in memcg_charge_slab()
322 struct kmem_cache *s) in memcg_uncharge_slab()
326 static inline void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
331 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
333 struct kmem_cache *cachep; in cache_from_obj()
358 static inline size_t slab_ksize(const struct kmem_cache *s) in slab_ksize()
388 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
405 static inline void slab_post_alloc_hook(struct kmem_cache *s, gfp_t flags, in slab_post_alloc_hook()
457 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) in get_node()
477 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
480 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
482 void cache_random_seq_destroy(struct kmem_cache *cachep);
484 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create()
489 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy()