Lines Matching refs:kmem_cache

20 struct kmem_cache {  struct
75 extern struct kmem_cache *kmem_cache;
89 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
94 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
96 struct kmem_cache *create_kmalloc_cache(const char *name, unsigned int size,
99 extern void create_boot_cache(struct kmem_cache *, const char *name,
103 int slab_unmergeable(struct kmem_cache *s);
104 struct kmem_cache *find_mergeable(unsigned size, unsigned align,
107 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 __kmemcg_cache_deactivate(struct kmem_cache *s);
174 void slab_kmem_cache_release(struct kmem_cache *);
192 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
193 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
203 void __kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
204 int __kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **);
220 static inline bool is_root_cache(struct kmem_cache *s) in is_root_cache()
225 static inline bool slab_equal_or_root(struct kmem_cache *s, in slab_equal_or_root()
226 struct kmem_cache *p) in slab_equal_or_root()
236 static inline const char *cache_name(struct kmem_cache *s) in cache_name()
248 static inline struct kmem_cache *
249 cache_from_memcg_idx(struct kmem_cache *s, int idx) in cache_from_memcg_idx()
251 struct kmem_cache *cachep; in cache_from_memcg_idx()
268 static inline struct kmem_cache *memcg_root_cache(struct kmem_cache *s) in memcg_root_cache()
277 struct kmem_cache *s) in memcg_charge_slab()
287 struct kmem_cache *s) in memcg_uncharge_slab()
294 extern void slab_init_memcg_params(struct kmem_cache *);
295 extern void memcg_link_cache(struct kmem_cache *s);
296 extern void slab_deactivate_memcg_cache_rcu_sched(struct kmem_cache *s,
297 void (*deact_fn)(struct kmem_cache *));
308 static inline bool is_root_cache(struct kmem_cache *s) in is_root_cache()
313 static inline bool slab_equal_or_root(struct kmem_cache *s, in slab_equal_or_root()
314 struct kmem_cache *p) in slab_equal_or_root()
319 static inline const char *cache_name(struct kmem_cache *s) in cache_name()
324 static inline struct kmem_cache *
325 cache_from_memcg_idx(struct kmem_cache *s, int idx) in cache_from_memcg_idx()
330 static inline struct kmem_cache *memcg_root_cache(struct kmem_cache *s) in memcg_root_cache()
336 struct kmem_cache *s) in memcg_charge_slab()
342 struct kmem_cache *s) in memcg_uncharge_slab()
346 static inline void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
350 static inline void memcg_link_cache(struct kmem_cache *s) in memcg_link_cache()
356 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
358 struct kmem_cache *cachep; in cache_from_obj()
383 static inline size_t slab_ksize(const struct kmem_cache *s) in slab_ksize()
413 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
433 static inline void slab_post_alloc_hook(struct kmem_cache *s, gfp_t flags, in slab_post_alloc_hook()
485 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) in get_node()
516 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
519 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
521 void cache_random_seq_destroy(struct kmem_cache *cachep);
523 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create()
528 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy()