函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void drain_array(struct kmem_cache *cachep, struct kmem_cache_node *n, struct array_cache *ac, int node)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cachep
struct kmem_cache_node *n
struct array_cache *ac
intnode
3996  LIST_HEAD(list)
3999  check_mutex_acquired()
4001  如果非ac或非avail则返回
4004  如果touched
4005  touched等于0
4006  返回
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)
调用者
名称描述
cache_reapache_reap - Reclaim memory from caches