函数逻辑报告 |
Source Code:mm\mempolicy.c |
Create Date:2022-07-27 17:06:33 |
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:mpol_misplaced - check whether current page node is valid in policy*@page: page to be checked*@vma: vm area where page mapped*@addr: virtual address where page mapped* Lookup current policy node id for vma,addr and "compare to" page's* node id
函数原型:int mpol_misplaced(struct page *page, struct vm_area_struct *vma, unsigned long addr)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct page * | page | |
| struct vm_area_struct * | vma | |
| unsigned long | addr |
| 2408 | curnid等于page_to_nid(page) |
| 2411 | thisnid等于cpu_to_node(thiscpu) |
| 2412 | polnid等于NUMA_NO_NODE |
| 2413 | ret等于负1 |
| 2415 | 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 |
| 2416 | 如果非See set_mempolicy() MPOL_F_* above 按位与his policy wants migrate on fault 的值则转到:out |
| 2420 | 当:See MPOL_* above 恒等于MPOL_INTERLEAVE |
| 2423 | polnid等于Do static interleaving for a VMA with known offset @n. Returns the n'th* node in pol->v.nodes (starting from n=0), wrapping around if n exceeds the* number of present nodes. |
| 2424 | 退出 |
| 2426 | 当:See MPOL_* above 恒等于MPOL_PREFERRED |
| 2427 | 如果See set_mempolicy() MPOL_F_* above 按位与preferred local allocation 则polnid等于Returns the number of the current Node. |
| 2431 | 退出 |
| 2433 | 当:See MPOL_* above 恒等于MPOL_BIND |
| 2447 | polnid等于zone_to_nid(Pointer to actual zone ) |
| 2448 | 退出 |
| 2450 | 默认 |
| 2451 | BUG() |
| 2464 | out : |
| 2465 | mpol_cond_put(pol) |
| 2467 | 返回:ret |
| 名称 | 描述 |
|---|---|
| do_huge_pmd_numa_page | NUMA hinting page fault entry point for trans huge pmds |
| numa_migrate_prep |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |