Function report |
Source Code:mm\mempolicy.c |
Create Date:2022-07-28 15:33:23 |
Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int mpol_misplaced(struct page *page, struct vm_area_struct *vma, unsigned long addr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If Not (See set_mempolicy() MPOL_F_* above & his policy wants migrate on fault ) Then Go to out |
2420 | Case 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 | Break |
2426 | Case See MPOL_* above == MPOL_PREFERRED |
2427 | If See set_mempolicy() MPOL_F_* above & preferred local allocation Then polnid = Returns the number of the current Node. |
2431 | Break |
2433 | Case See MPOL_* above == MPOL_BIND |
2441 | If No static inline type checking - see Subtlety (1) above. (curnid, interleave/bind ) Then Go to out |
2447 | polnid = zone_to_nid(Pointer to actual zone ) |
2448 | Break |
2450 | Default |
2451 | BUG() |
2458 | If Not should_numa_migrate_memory(current process, page, curnid, thiscpu) Then Go to out |
2464 | out : |
2465 | mpol_cond_put(pol) |
2467 | Return ret |
Name | Describe |
---|---|
do_huge_pmd_numa_page | NUMA hinting page fault entry point for trans huge pmds |
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 |