函数逻辑报告 |
Source Code:mm\mempolicy.c |
Create Date:2022-07-27 17:05:52 |
Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Return the node id preferred by the given mempolicy, or the given id
函数原型:static int policy_node(gfp_t gfp, struct mempolicy *policy, int nd)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
gfp_t | gfp | |
struct mempolicy * | policy | |
int | nd |
1826 | 如果See MPOL_* above 恒等于MPOL_PREFERRED且非See set_mempolicy() MPOL_F_* above 按位与preferred local allocation 的值则nd等于 preferred |
1828 | 否则 |
1834 | WARN_ON_ONCE(See MPOL_* above == MPOL_BIND && (gfp & __GFP_THISNODE)) |
1837 | 返回:nd |
名称 | 描述 |
---|---|
huge_node | huge_node(@vma, @addr, @gfp_flags, @mpol)*@vma: virtual memory area whose policy is sought*@addr: address in @vma for shared policy lookup and interleave policy*@gfp_flags: for requested zone*@mpol: pointer to mempolicy pointer for reference counted |
alloc_pages_vma | 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. |
alloc_pages_current | 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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |