Lines Matching refs:kmem_cache

19 struct kmem_cache {  struct
67 extern struct kmem_cache *kmem_cache;
78 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
83 extern int __kmem_cache_create(struct kmem_cache *, unsigned long flags);
85 extern struct kmem_cache *create_kmalloc_cache(const char *name, size_t size,
87 extern void create_boot_cache(struct kmem_cache *, const char *name,
90 int slab_unmergeable(struct kmem_cache *s);
91 struct kmem_cache *find_mergeable(size_t size, size_t align,
94 struct kmem_cache *
102 static inline struct kmem_cache *
141 int __kmem_cache_shutdown(struct kmem_cache *);
142 int __kmem_cache_shrink(struct kmem_cache *, bool);
143 void slab_kmem_cache_release(struct kmem_cache *);
161 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
162 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
172 void __kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
173 int __kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **);
184 static inline bool is_root_cache(struct kmem_cache *s) in is_root_cache()
189 static inline bool slab_equal_or_root(struct kmem_cache *s, in slab_equal_or_root()
190 struct kmem_cache *p) in slab_equal_or_root()
200 static inline const char *cache_name(struct kmem_cache *s) in cache_name()
212 static inline struct kmem_cache *
213 cache_from_memcg_idx(struct kmem_cache *s, int idx) in cache_from_memcg_idx()
215 struct kmem_cache *cachep; in cache_from_memcg_idx()
232 static inline struct kmem_cache *memcg_root_cache(struct kmem_cache *s) in memcg_root_cache()
241 struct kmem_cache *s) in memcg_charge_slab()
251 extern void slab_init_memcg_params(struct kmem_cache *);
258 static inline bool is_root_cache(struct kmem_cache *s) in is_root_cache()
263 static inline bool slab_equal_or_root(struct kmem_cache *s, in slab_equal_or_root()
264 struct kmem_cache *p) in slab_equal_or_root()
269 static inline const char *cache_name(struct kmem_cache *s) in cache_name()
274 static inline struct kmem_cache *
275 cache_from_memcg_idx(struct kmem_cache *s, int idx) in cache_from_memcg_idx()
280 static inline struct kmem_cache *memcg_root_cache(struct kmem_cache *s) in memcg_root_cache()
286 struct kmem_cache *s) in memcg_charge_slab()
291 static inline void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
296 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
298 struct kmem_cache *cachep; in cache_from_obj()
354 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) in get_node()