1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
8 #define SLAB_HWCACHE_ALIGN 1
10 #define SLAB_RECLAIM_ACCOUNT 0x00020000UL /* Objects are reclaimable */
12 void *kmalloc(size_t size, gfp_t);
15 static inline void *kzalloc(size_t size, gfp_t gfp)
17 return kmalloc(size, gfp | __GFP_ZERO);
20 void *kmem_cache_alloc(struct kmem_cache *cachep, int flags);
21 void kmem_cache_free(struct kmem_cache *cachep, void *objp);
24 kmem_cache_create(const char *name, size_t size, size_t offset,
25 unsigned long flags, void (*ctor)(void *));