Lines Matching refs:kmem_cache
55 struct kmem_cache *slab_cache;
234 struct kmem_cache { struct
295 void sysfs_slab_unlink(struct kmem_cache *s); argument
296 void sysfs_slab_release(struct kmem_cache *s);
298 static inline void sysfs_slab_unlink(struct kmem_cache *s) { } in sysfs_slab_unlink()
299 static inline void sysfs_slab_release(struct kmem_cache *s) { } in sysfs_slab_release()
302 void *fixup_red_left(struct kmem_cache *s, void *p);
304 static inline void *nearest_obj(struct kmem_cache *cache, in nearest_obj()
317 static inline unsigned int __obj_to_index(const struct kmem_cache *cache, in __obj_to_index()
324 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index()
332 static inline int objs_per_slab(const struct kmem_cache *cache, in objs_per_slab()
362 extern struct kmem_cache *kmem_cache;
388 static inline struct kmem_cache *
406 int do_kmem_cache_create(struct kmem_cache *s, const char *name,
411 extern void create_boot_cache(struct kmem_cache *, const char *name,
415 int slab_unmergeable(struct kmem_cache *s);
416 struct kmem_cache *find_mergeable(unsigned size, unsigned align,
418 struct kmem_cache *
424 static inline bool is_kmalloc_cache(struct kmem_cache *s) in is_kmalloc_cache()
429 static inline bool is_kmalloc_normal(struct kmem_cache *s) in is_kmalloc_normal()
448 bool __kmem_cache_empty(struct kmem_cache *);
449 int __kmem_cache_shutdown(struct kmem_cache *);
450 void __kmem_cache_release(struct kmem_cache *);
451 int __kmem_cache_shrink(struct kmem_cache *);
452 void slab_kmem_cache_release(struct kmem_cache *);
470 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
478 extern void print_tracking(struct kmem_cache *s, void *object);
479 long validate_slab_cache(struct kmem_cache *s);
485 static inline void print_tracking(struct kmem_cache *s, void *object) in print_tracking()
499 static inline bool kmem_cache_debug_flags(struct kmem_cache *s, slab_flags_t flags) in kmem_cache_debug_flags()
536 int alloc_slab_obj_exts(struct slab *slab, struct kmem_cache *s,
548 static inline enum node_stat_item cache_vmstat_idx(struct kmem_cache *s) in cache_vmstat_idx()
555 bool __memcg_slab_post_alloc_hook(struct kmem_cache *s, struct list_lru *lru,
557 void __memcg_slab_free_hook(struct kmem_cache *s, struct slab *slab,
565 static inline size_t slab_ksize(const struct kmem_cache *s) in slab_ksize()
598 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
601 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
603 void cache_random_seq_destroy(struct kmem_cache *cachep);
605 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create()
610 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy()
613 static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c) in slab_want_init_on_alloc()
626 static inline bool slab_want_init_on_free(struct kmem_cache *c) in slab_want_init_on_free()
636 void debugfs_slab_release(struct kmem_cache *);
638 static inline void debugfs_slab_release(struct kmem_cache *s) { } in debugfs_slab_release()
648 struct kmem_cache *kp_slab_cache;
659 static inline bool slub_debug_orig_size(struct kmem_cache *s) in slub_debug_orig_size()
666 void skip_orig_size_check(struct kmem_cache *s, const void *object);