Lines Matching refs:kmem_cache

20 struct kmem_cache {  struct
76 extern struct kmem_cache *kmem_cache;
90 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
117 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
119 struct kmem_cache *create_kmalloc_cache(const char *name, unsigned int size,
122 extern void create_boot_cache(struct kmem_cache *, const char *name,
126 int slab_unmergeable(struct kmem_cache *s);
127 struct kmem_cache *find_mergeable(unsigned size, unsigned align,
130 struct kmem_cache *
137 static inline struct kmem_cache *
191 bool __kmem_cache_empty(struct kmem_cache *);
192 int __kmem_cache_shutdown(struct kmem_cache *);
193 void __kmem_cache_release(struct kmem_cache *);
194 int __kmem_cache_shrink(struct kmem_cache *);
195 void slab_kmem_cache_release(struct kmem_cache *);
213 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
214 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
224 void __kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
225 int __kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **);
227 static inline int cache_vmstat_idx(struct kmem_cache *s) in cache_vmstat_idx()
239 extern void print_tracking(struct kmem_cache *s, void *object);
240 extern unsigned long get_each_object_track(struct kmem_cache *s,
242 int (*fn)(const struct kmem_cache *, const void *,
250 static inline void print_tracking(struct kmem_cache *s, void *object) in print_tracking()
258 static inline unsigned long get_each_object_track(struct kmem_cache *s, in get_each_object_track()
260 int (*fn)(const struct kmem_cache *, const void *, in get_each_object_track() argument
273 static inline bool kmem_cache_debug_flags(struct kmem_cache *s, slab_flags_t flags) in kmem_cache_debug_flags()
300 int memcg_alloc_page_obj_cgroups(struct page *page, struct kmem_cache *s,
309 static inline size_t obj_full_size(struct kmem_cache *s) in obj_full_size()
321 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s, in memcg_slab_pre_alloc_hook()
360 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s, in memcg_slab_post_alloc_hook()
394 static inline void memcg_slab_free_hook(struct kmem_cache *s_orig, in memcg_slab_free_hook()
397 struct kmem_cache *s; in memcg_slab_free_hook()
444 struct kmem_cache *s, gfp_t gfp) in memcg_alloc_page_obj_cgroups()
453 static inline bool memcg_slab_pre_alloc_hook(struct kmem_cache *s, in memcg_slab_pre_alloc_hook()
460 static inline void memcg_slab_post_alloc_hook(struct kmem_cache *s, in memcg_slab_post_alloc_hook()
467 static inline void memcg_slab_free_hook(struct kmem_cache *s, in memcg_slab_free_hook()
473 static inline struct kmem_cache *virt_to_cache(const void *obj) in virt_to_cache()
485 struct kmem_cache *s) in account_slab_page()
492 struct kmem_cache *s) in unaccount_slab_page()
501 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
503 struct kmem_cache *cachep; in cache_from_obj()
517 static inline size_t slab_ksize(const struct kmem_cache *s) in slab_ksize()
547 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
567 static inline void slab_post_alloc_hook(struct kmem_cache *s, in slab_post_alloc_hook()
627 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) in get_node()
655 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
658 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
660 void cache_random_seq_destroy(struct kmem_cache *cachep);
662 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create()
667 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy()
670 static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c) in slab_want_init_on_alloc()
682 static inline bool slab_want_init_on_free(struct kmem_cache *c) in slab_want_init_on_free()
691 void debugfs_slab_release(struct kmem_cache *);
693 static inline void debugfs_slab_release(struct kmem_cache *s) { } in debugfs_slab_release()