函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Depending on the memory policy provide a node from which to allocate the* next slab entry.

函数原型:unsigned int mempolicy_slab_node(void)

返回类型:unsigned int

参数:

1859  node等于Returns the number of the nearest Node with memory
1861  如果in_interrupt()则返回:node
1864  policy等于mempolicy
1865  如果非policySee set_mempolicy() MPOL_F_* above 按位与preferred local allocation 则返回:node
1869  :See MPOL_* above 恒等于MPOL_PREFERRED
1873  返回: preferred
1875  :See MPOL_* above 恒等于MPOL_INTERLEAVE
1876  返回:Do dynamic interleaving for a process
1878  :See MPOL_* above 恒等于MPOL_BIND
1886  highest_zoneidx等于gfp_zone(GFP_KERNEL)
1887  zonelist等于备用结点及其内存域的列表[ZONELIST_FALLBACK]
1888  z等于 - Zoneref pointer for the first suitable zone found (see below)
1890  返回:如果Pointer to actual zone zone_to_nid(Pointer to actual zone )否则node
1893  默认
1894  BUG()
调用者
名称描述
alternate_node_allocTry allocating on another node if PFA_SPREAD_SLAB is a mempolicy is set.* If we are in_interrupt, then process context, including cpusets and* mempolicy, may not apply and should not be used for allocation policy.
fallback_allocFallback function if there was no memory available and no objects on a* certain node and fall back is permitted. First we scan all the* available node for available objects. If that fails then we* perform an allocation without specifying a node
get_any_partialGet a page from somewhere. Search in increasing NUMA distances.