函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:16:44
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_node

函数原型:static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node)

返回类型:struct kmem_cache_node

参数:

类型参数名称
struct kmem_cache *s
intnode
169  返回:node[node]
调用者
名称描述
cache_free_pfmemalloc
__drain_alien_cache
__cache_free_alien
init_cache_node
setup_kmem_cache_node
drain_cache_node_nodeDrains freelist for a node on each slab cache, used for memory hot-remove.* Returns -EBUSY if all objects cannot be drained so that the node is not* removed.* Must hold slab_mutex.
do_drain
cache_grow_beginGrow (by 1) the number of slabs within a cache. This is called by* kmem_cache_alloc() when there are no active objs left in a cache.
cache_grow_end
cache_alloc_refill
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
____cache_alloc_nodeA interface to enable slab creation on nodeid
slab_alloc_node
free_blockCaller needs to acquire correct kmem_cache_node's list_lock*@list: List of detached free slabs should be freed by caller
cache_flusharray
setup_kmem_cache_nodesThis initializes kmem_cache_node or resizes various caches for all nodes.
__do_tune_cpucacheAlways called with the slab_mutex held
cache_reapache_reap - Reclaim memory from caches
get_any_partialGet a page from somewhere. Search in increasing NUMA distances.
get_partialGet a partial page, lock it and return it.
deactivate_slabRemove the cpu slab
__slab_freeSlow path handling. This may still be called frequently since objects* have a longer lifetime than the cpu slabs in most processing loads.* So we still attempt to reduce cache line usage. Just take the slab* lock and free the item
slab_mem_offline_callback