Function report |
Source Code:mm\percpu.c |
Create Date:2022-07-28 14:25:52 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pcpu_mem_zalloc - allocate memory*@size: bytes to allocate*@gfp: allocation flags* Allocate @size bytes. If @size is smaller than PAGE_SIZE,* kzalloc() is used; otherwise, the equivalent of vzalloc() is used.
Proto:static void *pcpu_mem_zalloc(size_t size, gfp_t gfp)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
size_t | size | |
gfp_t | gfp |
505 | If WARN_ON_ONCE(!slab_is_available()) Then Return NULL |
508 | If size <= PAGE_SIZE Then Return kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
510 | Else Return __vmalloc(size, gfp | __GFP_ZERO, PAGE_KERNEL) |
Name | Describe |
---|---|
pcpu_alloc_chunk |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |