Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-28 15:43:28
Last Modify:2022-05-23 17:02:55 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__drain_alien_cache

Proto:static void __drain_alien_cache(struct kmem_cache *cachep, struct array_cache *ac, int node, struct list_head *list)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cachep
struct array_cache *ac
intnode
struct list_head *list
736  n = get_node(cachep, node)
738  If avail Then
739  spin_lock( & list_lock)
745  If shared Then Transfer 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  spin_unlock( & list_lock)
Caller
NameDescribe
reap_alienCalled from cache_reap() to regularly drain alien caches round robin.
drain_alien_cache
__cache_free_alien