Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-28 15:32:52
Last Modify:2020-03-17 22:28:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static unsigned offset_il_node(struct mempolicy *pol, unsigned long n)

Type:unsigned

Parameter:

TypeParameterName
struct mempolicy *pol
unsigned longn
1905  nnodes = nodes_weight( interleave/bind )
1910  If Not nnodes Then Return 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  When i < target cycle nid = next_node(nid, interleave/bind )
1916  Return nid
Caller
NameDescribe
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