函数逻辑报告 |
Source Code:mm\mempolicy.c |
Create Date:2022-07-27 17:06:13 |
Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:alloc_pages_vma - Allocate a page for a VMA.*@gfp:* %GFP_USER user allocation.* %GFP_KERNEL kernel allocations,* %GFP_HIGHMEM highmem/user allocations,* %GFP_FS allocation should not call back into a file system.* %GFP_ATOMIC don't sleep.
函数原型:struct page *alloc_pages_vma(gfp_t gfp, int order, struct vm_area_struct *vma, unsigned long addr, int node, bool hugepage)
返回类型:struct page
参数:
类型 | 参数 | 名称 |
---|---|---|
gfp_t | gfp | |
int | order | |
struct vm_area_struct * | vma | |
unsigned long | addr | |
int | node | |
bool | hugepage |
2121 | pol等于get_vma_policy(@vma, @addr)*@vma: virtual memory area whose policy is sought*@addr: address in @vma for shared policy lookup* Returns effective policy for a VMA at specified address |
2123 | 如果See MPOL_* above 恒等于MPOL_INTERLEAVE则 |
2127 | mpol_cond_put(pol) |
2128 | page等于Allocate a page in interleaved policy.Own path because it needs to do special accounting. |
2129 | 转到:out |
2133 | hpage_node等于node |
2145 | 如果See MPOL_* above 恒等于MPOL_PREFERRED且非See set_mempolicy() MPOL_F_* above 按位与preferred local allocation 的值则hpage_node等于 preferred |
2150 | mpol_cond_put(pol) |
2155 | page等于Allocate pages, preferring the node given as nid. The node must be valid and* online. For more general interface, see alloc_pages_node(). |
2164 | 如果非page且gfp按位与Caller can reclaim 则page等于Allocate pages, preferring the node given as nid. The node must be valid and* online. For more general interface, see alloc_pages_node(). |
2168 | 转到:out |
2175 | mpol_cond_put(pol) |
2176 | out : |
2177 | 返回:page |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |