| Function report | 
| Source Code: mm\mempolicy.c | Create Date:2022-07-28 15:33:07 | 
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:alloc_pages_current - Allocate pages.*@gfp:* %GFP_USER user allocation,* %GFP_KERNEL kernel allocation,* %GFP_HIGHMEM highmem allocation,* %GFP_FS don't call back into a file system.* %GFP_ATOMIC don't sleep.
Proto:struct page *alloc_pages_current(gfp_t gfp, unsigned order)
Type:struct page
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| gfp_t | gfp | |
| unsigned | order | 
| 2201 | If Not in_interrupt() && Not (gfp & __GFP_THISNODE) Then pol = get_task_policy(current process) | 
| 2208 | If See MPOL_* above == MPOL_INTERLEAVE Then page = Allocate a page in interleaved policy.Own path because it needs to do special accounting. | 
| 2215 | Return page | 
| Name | Describe | 
|---|---|
| alloc_pages | 
| 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 |