Lines Matching refs:kmem_cache

55 	struct kmem_cache *slab_cache;
253 struct kmem_cache { struct
314 void sysfs_slab_unlink(struct kmem_cache *s); argument
315 void sysfs_slab_release(struct kmem_cache *s);
317 static inline void sysfs_slab_unlink(struct kmem_cache *s) { } in sysfs_slab_unlink()
318 static inline void sysfs_slab_release(struct kmem_cache *s) { } in sysfs_slab_release()
321 void *fixup_red_left(struct kmem_cache *s, void *p);
323 static inline void *nearest_obj(struct kmem_cache *cache, in nearest_obj()
336 static inline unsigned int __obj_to_index(const struct kmem_cache *cache, in __obj_to_index()
343 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index()
351 static inline int objs_per_slab(const struct kmem_cache *cache, in objs_per_slab()
381 extern struct kmem_cache *kmem_cache;
407 static inline struct kmem_cache *
425 int do_kmem_cache_create(struct kmem_cache *s, const char *name,
430 extern void create_boot_cache(struct kmem_cache *, const char *name,
434 int slab_unmergeable(struct kmem_cache *s);
435 struct kmem_cache *find_mergeable(unsigned size, unsigned align,
437 struct kmem_cache *
443 static inline bool is_kmalloc_cache(struct kmem_cache *s) in is_kmalloc_cache()
448 static inline bool is_kmalloc_normal(struct kmem_cache *s) in is_kmalloc_normal()
489 bool __kmem_cache_empty(struct kmem_cache *);
490 int __kmem_cache_shutdown(struct kmem_cache *);
491 void __kmem_cache_release(struct kmem_cache *);
492 int __kmem_cache_shrink(struct kmem_cache *);
493 void slab_kmem_cache_release(struct kmem_cache *);
511 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
519 extern void print_tracking(struct kmem_cache *s, void *object);
520 long validate_slab_cache(struct kmem_cache *s);
526 static inline void print_tracking(struct kmem_cache *s, void *object) in print_tracking()
540 static inline bool kmem_cache_debug_flags(struct kmem_cache *s, slab_flags_t flags) in kmem_cache_debug_flags()
577 int alloc_slab_obj_exts(struct slab *slab, struct kmem_cache *s,
589 static inline enum node_stat_item cache_vmstat_idx(struct kmem_cache *s) in cache_vmstat_idx()
596 bool __memcg_slab_post_alloc_hook(struct kmem_cache *s, struct list_lru *lru,
598 void __memcg_slab_free_hook(struct kmem_cache *s, struct slab *slab,
604 static inline size_t slab_ksize(const struct kmem_cache *s) in slab_ksize()
637 void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
640 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
642 void cache_random_seq_destroy(struct kmem_cache *cachep);
644 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create()
649 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy()
652 static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c) in slab_want_init_on_alloc()
665 static inline bool slab_want_init_on_free(struct kmem_cache *c) in slab_want_init_on_free()
675 void debugfs_slab_release(struct kmem_cache *);
677 static inline void debugfs_slab_release(struct kmem_cache *s) { } in debugfs_slab_release()
687 struct kmem_cache *kp_slab_cache;
699 void skip_orig_size_check(struct kmem_cache *s, const void *object);