Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Drain an array if it contains any elements taking the node lock only if* necessary. Note that the node listlock also protects the array_cache* if drain_array() is used on the shared array.

Proto:static void drain_array(struct kmem_cache *cachep, struct kmem_cache_node *n, struct array_cache *ac, int node)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cachep
struct kmem_cache_node *n
struct array_cache *ac
intnode
3996  LIST_HEAD(list)
3999  check_mutex_acquired()
4001  If Not ac || Not avail Then Return
4004  If touched Then
4005  touched = 0
4006  Return
4009  spin_lock_irq( & list_lock)
4010  drain_array_locked(cachep, ac, node, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., & list)
4011  spin_unlock_irq( & list_lock)
4013  slabs_destroy(cachep, & list)
Caller
NameDescribe
cache_reapache_reap - Reclaim memory from caches