1 #include <linux/types.h>
2 #include <linux/init.h>
3 #include <linux/slab.h>
4 #include <linux/bootmem.h>
5 #include <linux/string.h>
9 void * __ref
zalloc_maybe_bootmem(size_t size
, gfp_t mask
)
13 if (slab_is_available())
14 p
= kzalloc(size
, mask
);
16 p
= memblock_virt_alloc(size
, 0);