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);
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 enum node_stat_item cache_vmstat_idx(struct kmem_cache *s) in cache_vmstat_idx()
217 extern void print_tracking(struct kmem_cache *s, void *object);
218 long validate_slab_cache(struct kmem_cache *s);
224 static inline void print_tracking(struct kmem_cache *s, void *object) in print_tracking()
238 static inline bool kmem_cache_debug_flags(struct kmem_cache *s, slab_flags_t flags) in kmem_cache_debug_flags()
248 int memcg_alloc_page_obj_cgroups(struct page *page, struct kmem_cache *s,
259 static inline size_t obj_full_size(struct kmem_cache *s) in obj_full_size()
271 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s, in memcg_slab_pre_alloc_hook()
296 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s, in memcg_slab_post_alloc_hook()
331 static inline void memcg_slab_free_hook(struct kmem_cache *s_orig, in memcg_slab_free_hook()
334 struct kmem_cache *s; in memcg_slab_free_hook()
378 struct kmem_cache *s, gfp_t gfp, in memcg_alloc_page_obj_cgroups()
388 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s, in memcg_slab_pre_alloc_hook()
395 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s, in memcg_slab_post_alloc_hook()
402 static inline void memcg_slab_free_hook(struct kmem_cache *s, in memcg_slab_free_hook()
408 static inline struct kmem_cache *virt_to_cache(const void *obj) in virt_to_cache()
420 struct kmem_cache *s, in account_slab_page()
431 struct kmem_cache *s) in unaccount_slab_page()
440 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
442 struct kmem_cache *cachep; in cache_from_obj()
456 static inline size_t slab_ksize(const struct kmem_cache *s) in slab_ksize()
486 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
503 static inline void slab_post_alloc_hook(struct kmem_cache *s, in slab_post_alloc_hook()
563 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) in get_node()
591 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
594 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
596 void cache_random_seq_destroy(struct kmem_cache *cachep);
598 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create()
603 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy()
606 static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c) in slab_want_init_on_alloc()
619 static inline bool slab_want_init_on_free(struct kmem_cache *c) in slab_want_init_on_free()
629 void debugfs_slab_release(struct kmem_cache *);
631 static inline void debugfs_slab_release(struct kmem_cache *s) { } in debugfs_slab_release()
641 struct kmem_cache *kp_slab_cache;