Lines Matching refs:kmem_cache
20 struct kmem_cache { struct
37 struct kmem_cache *entries[0]; argument
74 struct kmem_cache *root_cache;
88 void (*work_fn)(struct kmem_cache *);
138 extern struct kmem_cache *kmem_cache;
152 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
157 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
159 struct kmem_cache *create_kmalloc_cache(const char *name, unsigned int size,
162 extern void create_boot_cache(struct kmem_cache *, const char *name,
166 int slab_unmergeable(struct kmem_cache *s);
167 struct kmem_cache *find_mergeable(unsigned size, unsigned align,
170 struct kmem_cache *
178 static inline struct kmem_cache *
233 bool __kmem_cache_empty(struct kmem_cache *);
234 int __kmem_cache_shutdown(struct kmem_cache *);
235 void __kmem_cache_release(struct kmem_cache *);
236 int __kmem_cache_shrink(struct kmem_cache *);
237 void __kmemcg_cache_deactivate(struct kmem_cache *s);
238 void __kmemcg_cache_deactivate_after_rcu(struct kmem_cache *s);
239 void slab_kmem_cache_release(struct kmem_cache *);
240 void kmem_cache_shrink_all(struct kmem_cache *s);
258 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
259 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
269 void __kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
270 int __kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **);
272 static inline int cache_vmstat_idx(struct kmem_cache *s) in cache_vmstat_idx()
292 static inline bool is_root_cache(struct kmem_cache *s) in is_root_cache()
297 static inline bool slab_equal_or_root(struct kmem_cache *s, in slab_equal_or_root()
298 struct kmem_cache *p) in slab_equal_or_root()
308 static inline const char *cache_name(struct kmem_cache *s) in cache_name()
315 static inline struct kmem_cache *memcg_root_cache(struct kmem_cache *s) in memcg_root_cache()
334 struct kmem_cache *s; in memcg_from_slab_page()
349 struct kmem_cache *s) in memcg_charge_slab()
388 struct kmem_cache *s) in memcg_uncharge_slab()
408 extern void slab_init_memcg_params(struct kmem_cache *);
409 extern void memcg_link_cache(struct kmem_cache *s, struct mem_cgroup *memcg);
420 static inline bool is_root_cache(struct kmem_cache *s) in is_root_cache()
425 static inline bool slab_equal_or_root(struct kmem_cache *s, in slab_equal_or_root()
426 struct kmem_cache *p) in slab_equal_or_root()
431 static inline const char *cache_name(struct kmem_cache *s) in cache_name()
436 static inline struct kmem_cache *memcg_root_cache(struct kmem_cache *s) in memcg_root_cache()
447 struct kmem_cache *s) in memcg_charge_slab()
453 struct kmem_cache *s) in memcg_uncharge_slab()
457 static inline void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
461 static inline void memcg_link_cache(struct kmem_cache *s, in memcg_link_cache()
468 static inline struct kmem_cache *virt_to_cache(const void *obj) in virt_to_cache()
481 struct kmem_cache *s) in charge_slab_page()
493 struct kmem_cache *s) in uncharge_slab_page()
504 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
506 struct kmem_cache *cachep; in cache_from_obj()
527 static inline size_t slab_ksize(const struct kmem_cache *s) in slab_ksize()
557 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
577 static inline void slab_post_alloc_hook(struct kmem_cache *s, gfp_t flags, in slab_post_alloc_hook()
628 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) in get_node()
659 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
662 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
664 void cache_random_seq_destroy(struct kmem_cache *cachep);
666 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create()
671 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy()
674 static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c) in slab_want_init_on_alloc()
686 static inline bool slab_want_init_on_free(struct kmem_cache *c) in slab_want_init_on_free()