Lines Matching refs:kmem_cache

19 struct kmem_cache {  struct
67 extern struct kmem_cache *kmem_cache;
77 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
82 extern int __kmem_cache_create(struct kmem_cache *, unsigned long flags);
84 extern struct kmem_cache *create_kmalloc_cache(const char *name, size_t size,
86 extern void create_boot_cache(struct kmem_cache *, const char *name,
89 int slab_unmergeable(struct kmem_cache *s);
90 struct kmem_cache *find_mergeable(size_t size, size_t align,
93 struct kmem_cache *
101 static inline struct kmem_cache *
140 int __kmem_cache_shutdown(struct kmem_cache *);
141 int __kmem_cache_shrink(struct kmem_cache *, bool);
142 void slab_kmem_cache_release(struct kmem_cache *);
160 void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo);
161 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
178 static inline bool is_root_cache(struct kmem_cache *s) in is_root_cache()
183 static inline bool slab_equal_or_root(struct kmem_cache *s, in slab_equal_or_root()
184 struct kmem_cache *p) in slab_equal_or_root()
194 static inline const char *cache_name(struct kmem_cache *s) in cache_name()
206 static inline struct kmem_cache *
207 cache_from_memcg_idx(struct kmem_cache *s, int idx) in cache_from_memcg_idx()
209 struct kmem_cache *cachep; in cache_from_memcg_idx()
226 static inline struct kmem_cache *memcg_root_cache(struct kmem_cache *s) in memcg_root_cache()
233 static __always_inline int memcg_charge_slab(struct kmem_cache *s, in memcg_charge_slab()
243 static __always_inline void memcg_uncharge_slab(struct kmem_cache *s, int order) in memcg_uncharge_slab()
252 extern void slab_init_memcg_params(struct kmem_cache *);
261 static inline bool is_root_cache(struct kmem_cache *s) in is_root_cache()
266 static inline bool slab_equal_or_root(struct kmem_cache *s, in slab_equal_or_root()
267 struct kmem_cache *p) in slab_equal_or_root()
272 static inline const char *cache_name(struct kmem_cache *s) in cache_name()
277 static inline struct kmem_cache *
278 cache_from_memcg_idx(struct kmem_cache *s, int idx) in cache_from_memcg_idx()
283 static inline struct kmem_cache *memcg_root_cache(struct kmem_cache *s) in memcg_root_cache()
288 static inline int memcg_charge_slab(struct kmem_cache *s, gfp_t gfp, int order) in memcg_charge_slab()
293 static inline void memcg_uncharge_slab(struct kmem_cache *s, int order) in memcg_uncharge_slab()
297 static inline void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
302 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
304 struct kmem_cache *cachep; in cache_from_obj()
360 static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) in get_node()