函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__drain_alien_cache

函数原型:static void __drain_alien_cache(struct kmem_cache *cachep, struct array_cache *ac, int node, struct list_head *list)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cachep
struct array_cache *ac
intnode
struct list_head *list
736  n等于get_node(cachep, node)
738  如果avail
739  加自旋锁
745  如果sharedTransfer objects in one arraycache to another.* Locking must be handled by the caller.* Return the number of entries transferred.
748  Caller needs to acquire correct kmem_cache_node's list_lock*@list: List of detached free slabs should be freed by caller
749  avail等于0
750  自旋锁解锁
调用者
名称描述
reap_alienCalled from cache_reap() to regularly drain alien caches round robin.
drain_alien_cache
__cache_free_alien