函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\topology.h Create Date:2022-07-27 06:40:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Returns the number of the nearest Node with memory

函数原型:static inline int numa_mem_id(void)

返回类型:int

参数:

179  返回:Returns the number of the current Node.
调用者
名称描述
alloc_buddy_huge_page
mempolicy_slab_nodeDepending on the memory policy provide a node from which to allocate the* next slab entry.
cache_free_alien
setup_cpu_cache
do_drain
cache_alloc_refill
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
slab_alloc_node
__do_cache_alloc
cache_flusharray
cache_reapache_reap - Reclaim memory from caches
get_partialGet a partial page, lock it and return it.
alloc_pages_nodeAllocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online.