Function report |
Source Code:mm\page_alloc.c |
Create Date:2022-07-28 15:05:05 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Lock and remove page from the per-cpu list
Proto:static struct page *rmqueue_pcplist(struct zone *preferred_zone, struct zone *zone, gfp_t gfp_flags, int migratetype, unsigned int alloc_flags)
Type:struct page
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct zone * | preferred_zone | |
| struct zone * | zone | |
| gfp_t | gfp_flags | |
| int | migratetype | |
| unsigned int | alloc_flags |
| 3238 | local_irq_save(flags) |
| 3239 | pcp = & ({ |
| 3239 | })->pcp |
| 3242 | If page Then |
| 3243 | __count_zid_vm_events(PGALLOC, page_zonenum(page), 1) |
| 3246 | local_irq_restore(flags) |
| 3247 | Return page |
| Name | Describe |
|---|---|
| rmqueue | Allocate a page from the given zone. Use pcplists for order-0 allocations. |
| 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 |