Lines Matching refs:kmem_cache
18 struct kmem_cache *slab_cache;
35 struct kmem_cache *slab_cache;
205 struct kmem_cache { struct
261 extern struct kmem_cache *kmem_cache;
275 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
277 void *__kmem_cache_alloc_node(struct kmem_cache *s, gfp_t gfpflags,
280 void __kmem_cache_free(struct kmem_cache *s, void *x, unsigned long caller);
286 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
288 struct kmem_cache *create_kmalloc_cache(const char *name, unsigned int size,
291 extern void create_boot_cache(struct kmem_cache *, const char *name,
295 int slab_unmergeable(struct kmem_cache *s);
296 struct kmem_cache *find_mergeable(unsigned size, unsigned align,
299 struct kmem_cache *
306 static inline struct kmem_cache *
361 bool __kmem_cache_empty(struct kmem_cache *);
362 int __kmem_cache_shutdown(struct kmem_cache *);
363 void __kmem_cache_release(struct kmem_cache *);
364 int __kmem_cache_shrink(struct kmem_cache *);
365 void slab_kmem_cache_release(struct kmem_cache *);
383 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
384 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
388 static inline enum node_stat_item cache_vmstat_idx(struct kmem_cache *s) in cache_vmstat_idx()
400 extern void print_tracking(struct kmem_cache *s, void *object);
401 long validate_slab_cache(struct kmem_cache *s);
407 static inline void print_tracking(struct kmem_cache *s, void *object) in print_tracking()
421 static inline bool kmem_cache_debug_flags(struct kmem_cache *s, slab_flags_t flags) in kmem_cache_debug_flags()
449 int memcg_alloc_slab_cgroups(struct slab *slab, struct kmem_cache *s,
460 static inline size_t obj_full_size(struct kmem_cache *s) in obj_full_size()
472 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s, in memcg_slab_pre_alloc_hook()
511 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s, in memcg_slab_post_alloc_hook()
546 static inline void memcg_slab_free_hook(struct kmem_cache *s, struct slab *slab, in memcg_slab_free_hook()
588 struct kmem_cache *s, gfp_t gfp, in memcg_alloc_slab_cgroups()
598 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s, in memcg_slab_pre_alloc_hook()
606 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s, in memcg_slab_post_alloc_hook()
613 static inline void memcg_slab_free_hook(struct kmem_cache *s, struct slab *slab, in memcg_slab_free_hook()
620 static inline struct kmem_cache *virt_to_cache(const void *obj) in virt_to_cache()
632 struct kmem_cache *s, gfp_t gfp) in account_slab()
642 struct kmem_cache *s) in unaccount_slab()
651 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
653 struct kmem_cache *cachep; in cache_from_obj()
673 static inline size_t slab_ksize(const struct kmem_cache *s) in slab_ksize()
703 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
721 static inline void slab_post_alloc_hook(struct kmem_cache *s, in slab_post_alloc_hook()
782 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) in get_node()
805 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
808 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
810 void cache_random_seq_destroy(struct kmem_cache *cachep);
812 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create()
817 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy()
820 static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c) in slab_want_init_on_alloc()
833 static inline bool slab_want_init_on_free(struct kmem_cache *c) in slab_want_init_on_free()
843 void debugfs_slab_release(struct kmem_cache *);
845 static inline void debugfs_slab_release(struct kmem_cache *s) { } in debugfs_slab_release()
855 struct kmem_cache *kp_slab_cache;