Function report |
Source Code:mm\percpu-vm.c |
Create Date:2022-07-28 14:26:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pcpu_alloc_pages - allocates pages for @chunk*@chunk: target chunk*@pages: array to put the allocated pages into, indexed by pcpu_page_idx()*@page_start: page index of the first page to be allocated*@page_end: page index of the last page to be allocated +
Proto:static int pcpu_alloc_pages(struct pcpu_chunk *chunk, struct page **pages, int page_start, int page_end, gfp_t gfp)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct pcpu_chunk * | chunk | |
| struct page ** | pages | |
| int | page_start | |
| int | page_end | |
| gfp_t | gfp |
| 88 | gfp |= __GFP_HIGHMEM |
| 99 | Return 0 |
| 101 | err : |
| 102 | When --i >= page_start cycle |
| 103 | __free_page(pages[pcpu_page_idx(cpu, i)]) |
| 108 | When i < page_end cycle __free_page(pages[pcpu_page_idx(tcpu, i)]) |
| 111 | Return -ENOMEM |
| 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 |