diff options
Diffstat (limited to 'include/linux/slab.h')
-rw-r--r-- | include/linux/slab.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index cf48570c..ff122ff9 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -174,6 +174,11 @@ static inline void *kmem_cache_alloc(struct kmem_cache *c, gfp_t gfp) return kmalloc(c->obj_size, gfp); } +static inline void *kmem_cache_zalloc(struct kmem_cache *c, gfp_t gfp) +{ + return kzalloc(c->obj_size, gfp); +} + static inline void kmem_cache_free(struct kmem_cache *c, void *p) { kfree(p); |