Lines Matching refs:kmem_cache
14 struct kmem_cache *slab_cache;
27 struct kmem_cache *slab_cache;
215 struct kmem_cache { struct
269 extern struct kmem_cache *kmem_cache;
283 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
285 void *__kmem_cache_alloc_node(struct kmem_cache *s, gfp_t gfpflags,
288 void __kmem_cache_free(struct kmem_cache *s, void *x, unsigned long caller);
294 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
296 struct kmem_cache *create_kmalloc_cache(const char *name, unsigned int size,
299 extern void create_boot_cache(struct kmem_cache *, const char *name,
303 int slab_unmergeable(struct kmem_cache *s);
304 struct kmem_cache *find_mergeable(unsigned size, unsigned align,
307 struct kmem_cache *
314 static inline struct kmem_cache *
326 static inline bool is_kmalloc_cache(struct kmem_cache *s) in is_kmalloc_cache()
379 bool __kmem_cache_empty(struct kmem_cache *);
380 int __kmem_cache_shutdown(struct kmem_cache *);
381 void __kmem_cache_release(struct kmem_cache *);
382 int __kmem_cache_shrink(struct kmem_cache *);
383 void slab_kmem_cache_release(struct kmem_cache *);
401 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
402 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
406 static inline enum node_stat_item cache_vmstat_idx(struct kmem_cache *s) in cache_vmstat_idx()
418 extern void print_tracking(struct kmem_cache *s, void *object);
419 long validate_slab_cache(struct kmem_cache *s);
425 static inline void print_tracking(struct kmem_cache *s, void *object) in print_tracking()
439 static inline bool kmem_cache_debug_flags(struct kmem_cache *s, slab_flags_t flags) in kmem_cache_debug_flags()
467 int memcg_alloc_slab_cgroups(struct slab *slab, struct kmem_cache *s,
478 static inline size_t obj_full_size(struct kmem_cache *s) in obj_full_size()
490 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s, in memcg_slab_pre_alloc_hook()
529 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s, in memcg_slab_post_alloc_hook()
564 static inline void memcg_slab_free_hook(struct kmem_cache *s, struct slab *slab, in memcg_slab_free_hook()
606 struct kmem_cache *s, gfp_t gfp, in memcg_alloc_slab_cgroups()
616 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s, in memcg_slab_pre_alloc_hook()
624 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s, in memcg_slab_post_alloc_hook()
631 static inline void memcg_slab_free_hook(struct kmem_cache *s, struct slab *slab, in memcg_slab_free_hook()
638 static inline struct kmem_cache *virt_to_cache(const void *obj) in virt_to_cache()
650 struct kmem_cache *s, gfp_t gfp) in account_slab()
660 struct kmem_cache *s) in unaccount_slab()
669 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
671 struct kmem_cache *cachep; in cache_from_obj()
691 static inline size_t slab_ksize(const struct kmem_cache *s) in slab_ksize()
721 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
739 static inline void slab_post_alloc_hook(struct kmem_cache *s, in slab_post_alloc_hook()
814 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) in get_node()
837 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
840 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
842 void cache_random_seq_destroy(struct kmem_cache *cachep);
844 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create()
849 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy()
852 static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c) in slab_want_init_on_alloc()
865 static inline bool slab_want_init_on_free(struct kmem_cache *c) in slab_want_init_on_free()
875 void debugfs_slab_release(struct kmem_cache *);
877 static inline void debugfs_slab_release(struct kmem_cache *s) { } in debugfs_slab_release()
887 struct kmem_cache *kp_slab_cache;
907 void skip_orig_size_check(struct kmem_cache *s, const void *object);