函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int __meminit drain_cache_node_node(int node)

返回类型:int

参数:

类型参数名称
intnode
1146  ret等于0
1151  n等于get_node(cachep, node)
1152  如果非n则继续下一循环
1155  drain_freelist(cachep, n, INT_MAX)
1157  如果非链表为空或非链表为空
1159  ret等于负EBUSY
1160  退出
1163  返回:ret
调用者
名称描述
slab_memory_callback