Lines Matching refs:kmem_cache
116 struct kmem_cache *kmem_cache_create(const char *, size_t, size_t,
119 void kmem_cache_destroy(struct kmem_cache *);
120 int kmem_cache_shrink(struct kmem_cache *);
122 void memcg_create_kmem_cache(struct mem_cgroup *, struct kmem_cache *);
251 extern struct kmem_cache *kmalloc_caches[KMALLOC_SHIFT_HIGH + 1];
253 extern struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1];
308 void *kmem_cache_alloc(struct kmem_cache *, gfp_t flags) __assume_slab_alignment;
309 void kmem_cache_free(struct kmem_cache *, void *);
318 void kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
319 int kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **);
323 void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node) __assume_slab_alignment;
330 static __always_inline void *kmem_cache_alloc_node(struct kmem_cache *s, gfp_t flags, int node) in kmem_cache_alloc_node()
337 extern void *kmem_cache_alloc_trace(struct kmem_cache *, gfp_t, size_t) __assume_slab_alignment;
340 extern void *kmem_cache_alloc_node_trace(struct kmem_cache *s,
345 kmem_cache_alloc_node_trace(struct kmem_cache *s, in kmem_cache_alloc_node_trace()
354 static __always_inline void *kmem_cache_alloc_trace(struct kmem_cache *s, in kmem_cache_alloc_trace()
364 kmem_cache_alloc_node_trace(struct kmem_cache *s, in kmem_cache_alloc_node_trace()
505 struct kmem_cache *entries[0];
531 struct kmem_cache *root_cache;
590 static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags) in kmem_cache_zalloc()
616 unsigned int kmem_cache_size(struct kmem_cache *s);