Lines Matching refs:kmem_cache
47 struct kmem_cache *slab_cache;
60 struct kmem_cache *slab_cache;
272 extern struct kmem_cache *kmem_cache;
285 struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags, unsigned long caller);
287 void *__kmem_cache_alloc_node(struct kmem_cache *s, gfp_t gfpflags,
290 void __kmem_cache_free(struct kmem_cache *s, void *x, unsigned long caller);
295 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
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,
306 struct kmem_cache *
313 static inline bool is_kmalloc_cache(struct kmem_cache *s) in is_kmalloc_cache()
363 bool __kmem_cache_empty(struct kmem_cache *);
364 int __kmem_cache_shutdown(struct kmem_cache *);
365 void __kmem_cache_release(struct kmem_cache *);
366 int __kmem_cache_shrink(struct kmem_cache *);
367 void slab_kmem_cache_release(struct kmem_cache *);
385 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
386 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
390 static inline enum node_stat_item cache_vmstat_idx(struct kmem_cache *s) in cache_vmstat_idx()
402 extern void print_tracking(struct kmem_cache *s, void *object);
403 long validate_slab_cache(struct kmem_cache *s);
409 static inline void print_tracking(struct kmem_cache *s, void *object) in print_tracking()
423 static inline bool kmem_cache_debug_flags(struct kmem_cache *s, slab_flags_t flags) in kmem_cache_debug_flags()
451 int memcg_alloc_slab_cgroups(struct slab *slab, struct kmem_cache *s,
462 static inline size_t obj_full_size(struct kmem_cache *s) in obj_full_size()
474 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s, in memcg_slab_pre_alloc_hook()
513 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s, in memcg_slab_post_alloc_hook()
548 static inline void memcg_slab_free_hook(struct kmem_cache *s, struct slab *slab, in memcg_slab_free_hook()
590 struct kmem_cache *s, gfp_t gfp, in memcg_alloc_slab_cgroups()
600 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s, in memcg_slab_pre_alloc_hook()
608 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s, in memcg_slab_post_alloc_hook()
615 static inline void memcg_slab_free_hook(struct kmem_cache *s, struct slab *slab, in memcg_slab_free_hook()
621 static inline struct kmem_cache *virt_to_cache(const void *obj) in virt_to_cache()
633 struct kmem_cache *s, gfp_t gfp) in account_slab()
643 struct kmem_cache *s) in unaccount_slab()
652 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
654 struct kmem_cache *cachep; in cache_from_obj()
672 static inline size_t slab_ksize(const struct kmem_cache *s) in slab_ksize()
702 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
720 static inline void slab_post_alloc_hook(struct kmem_cache *s, in slab_post_alloc_hook()
806 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) in get_node()
828 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
831 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
833 void cache_random_seq_destroy(struct kmem_cache *cachep);
835 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create()
840 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy()
843 static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c) in slab_want_init_on_alloc()
856 static inline bool slab_want_init_on_free(struct kmem_cache *c) in slab_want_init_on_free()
866 void debugfs_slab_release(struct kmem_cache *);
868 static inline void debugfs_slab_release(struct kmem_cache *s) { } in debugfs_slab_release()
878 struct kmem_cache *kp_slab_cache;
890 void skip_orig_size_check(struct kmem_cache *s, const void *object);