函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:05:58
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static unsigned offset_il_node(struct mempolicy *pol, unsigned long n)

返回类型:unsigned

参数:

类型参数名称
struct mempolicy *pol
unsigned longn
1905  nnodes等于nodes_weight( interleave/bind )
1910  如果非nnodes则返回:Returns the number of the current Node.
1912  target等于n取模nnodes
1913  nid等于FIXME: better would be to fix all architectures to never return> MAX_NUMNODES, then the silly min_ts could be dropped. ( interleave/bind )
1914 i小于target循环nid等于next_node(nid, interleave/bind )
1916  返回:nid
调用者
名称描述
interleave_nidDetermine a node number for interleave
mpol_misplacedmpol_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